pub struct Matrix3 { /* private fields */ }
Expand description
A 3x3 matrix.
Wrapper around C++ implementation maliput::math::Matrix3
.
§Example
use maliput::math::Matrix3;
use maliput::math::Vector3;
let row_1 = Vector3::new(1.0, 2.0, 3.0);
let row_2 = Vector3::new(4.0, 5.0, 6.0);
let row_3 = Vector3::new(7.0, 8.0, 9.0);
let m = Matrix3::new(row_1, row_2, row_3);
Implementations§
Source§impl Matrix3
impl Matrix3
Sourcepub fn new(row1: Vector3, row2: Vector3, row3: Vector3) -> Matrix3
pub fn new(row1: Vector3, row2: Vector3, row3: Vector3) -> Matrix3
Create a new Matrix3
with the given row1
, row2
, and row3
.
Sourcepub fn cofactor(&self, row: u64, col: u64) -> f64
pub fn cofactor(&self, row: u64, col: u64) -> f64
Get the cofactor of the Matrix3
at the given row
and col
.
Sourcepub fn cofactor_matrix(&self) -> Matrix3
pub fn cofactor_matrix(&self) -> Matrix3
Get the cofactor matrix of the Matrix3
.
Sourcepub fn determinant(&self) -> f64
pub fn determinant(&self) -> f64
Get the determinant of the Matrix3
.
Sourcepub fn is_singular(&self) -> bool
pub fn is_singular(&self) -> bool
Check if the Matrix3
is singular.
Trait Implementations§
impl Eq for Matrix3
Auto Trait Implementations§
impl Freeze for Matrix3
impl RefUnwindSafe for Matrix3
impl !Send for Matrix3
impl !Sync for Matrix3
impl Unpin for Matrix3
impl UnwindSafe for Matrix3
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more