pub type Matrix3<T> = Matrix<T, U3, U3, ArrayStorage<T, 3, 3>>;
Expand description
A stack-allocated, column-major, 3x3 square matrix.
Because this is an alias, not all its methods are listed here. See the Matrix
type too.
Implementations
sourceimpl<T: RealField> Matrix3<T>
impl<T: RealField> Matrix3<T>
sourcepub fn new_rotation(angle: T) -> Self
pub fn new_rotation(angle: T) -> Self
Builds a 2 dimensional homogeneous rotation matrix from an angle in radian.
sourcepub fn new_nonuniform_scaling_wrt_point(
scaling: &Vector2<T>,
pt: &Point2<T>
) -> Self
pub fn new_nonuniform_scaling_wrt_point(
scaling: &Vector2<T>,
pt: &Point2<T>
) -> Self
Creates a new homogeneous matrix that applies a scaling factor for each dimension with respect to point.
Can be used to implement “zoom_to” functionality.
Trait Implementations
sourceimpl<T: SimdRealField> From<Unit<Complex<T>>> for Matrix3<T> where
T::Element: SimdRealField,
impl<T: SimdRealField> From<Unit<Complex<T>>> for Matrix3<T> where
T::Element: SimdRealField,
sourcefn from(q: UnitComplex<T>) -> Matrix3<T>
fn from(q: UnitComplex<T>) -> Matrix3<T>
Performs the conversion.
sourceimpl<T: SimdRealField> From<Unit<Quaternion<T>>> for Matrix3<T> where
T::Element: SimdRealField,
impl<T: SimdRealField> From<Unit<Quaternion<T>>> for Matrix3<T> where
T::Element: SimdRealField,
sourcefn from(q: UnitQuaternion<T>) -> Self
fn from(q: UnitQuaternion<T>) -> Self
Performs the conversion.