ReadMat3x3

Trait ReadMat3x3 

Source
pub trait ReadMat3x3<T> {
    // Required method
    fn at(&self, row: usize, col: usize) -> &T;
}
Expand description

Interface for reading entries of a 3x3 matrix.

Required Methods§

Source

fn at(&self, row: usize, col: usize) -> &T

Returns the entry at the given row and column.

Both row and col are zero-based.

Implementations on Foreign Types§

Source§

impl<T> ReadMat3x3<T> for [T; 9]

Source§

fn at(&self, row: usize, col: usize) -> &T

Source§

impl<T> ReadMat3x3<T> for [[T; 3]; 3]

Source§

fn at(&self, row: usize, col: usize) -> &T

Implementors§