pub fn rotation(angle: T) -> Mat2<T> {
        let sin = angle.sin();
        let cos = angle.cos();
        Mat2 {
            a11: cos, a12: -sin,
            a21: sin, a22: cos,
            .. Mat2::IDENTITY
        }
    }
/// Creates a matrix representing a counterclockwise rotation of `angle` radians around the z
/// axis. This is intended for 2d rotations.
Creates a matrix representing a counterclockwise rotation of `angle` radians around the z
axis. This is intended for 2d rotations.
Creates a matrix representing a counterclockwise rotation of ` angle ` radians around the z axis . This is intended for 2d rotations .
pub fn rotation(angle: T) -> Mat2<T> {
        let sin = angle.sin();
        let cos = angle.cos();
        Mat2 {
            a11: cos, a12: -sin,
            a21: sin, a22: cos,
            .. Mat2::IDENTITY
        }
    }
pub fn rotation ( angle : T ) -> Mat2 < T > { let sin = angle . sin ( ) ; let cos = angle . cos ( ) ; Mat2 { a11 : cos , a12 : - sin , a21 : sin , a22 : cos , .. Mat2 :: IDENTITY } }
Creates a matrix representing a counterclockwise rotation of `angle` radians around the z
axis.
Creates a matrix representing a counterclockwise rotation of ` angle ` radians around the z axis .
angle
T
angle
T