Skip to main content

MatRotate2D

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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>,