Trait maths_rs::mat::MatRotate2D

source ·
pub trait MatRotate2D<T> {
    // Required method
    fn from_z_rotation(theta: T) -> Self;
}
Expand description

trait for minimum of 2x2 matrices applying rotation in z-axis

Required Methods§

source

fn from_z_rotation(theta: T) -> Self

create rotation about the z axis by theta radians

Implementors§

source§

impl<T> MatRotate2D<T> for Mat2<T>where T: Float + FloatOps<T>,

source§

impl<T> MatRotate2D<T> for Mat3<T>where T: Float + FloatOps<T>,

source§

impl<T> MatRotate2D<T> for Mat4<T>where T: Float + FloatOps<T>,

source§

impl<T> MatRotate2D<T> for Mat34<T>where T: Float + FloatOps<T>,