Struct lowdim::Matrix2d [−][src]
pub struct Matrix2d<S: Integer> { /* fields omitted */ }Expand description
A two-dimensional discrete matrix.
Implementations
Creates a new 2d matrix from its values by rows.
Creates a new 2d matrix from a function.
Example
let m = Matrix2d::with(|i, j| i64::try_from(3 * i + j).unwrap());
assert_eq!(Matrix2d::new(0, 1, 3, 4), m);Returns the determinant of a matrix.
Creates a matrix for a left rotation by a right angle.
Creates a matrix for a rotation by 180 degrees.
Creates a matrix for a right rotation by a right angle.
Creates a matrix for a reflection on the x-axis.
Creates a matrix for a reflection on the y-axis.
Creates a matrix for a reflection on the x=y diagonal.
Creates a matrix for a reflection on the -x=y anti-diagonal.
Trait Implementations
Auto Trait Implementations
impl<S> RefUnwindSafe for Matrix2d<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Matrix2d<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more