pub fn rotate(&self, rad: f64) -> Matrix {
        let s = &self.0;
        let (sin, cos) = rad.sin_cos();
        Matrix([
            s[0] * cos - s[3] * sin,
            s[1] * cos - s[4] * sin,
            s[2] * cos - s[5] * sin,
            s[0] * sin + s[3] * cos,
            s[1] * sin + s[4] * cos,
            s[2] * sin + s[5] * cos,
        ])
    }
/// Create new Matrix rotated with specified angle from myself.
Create new Matrix rotated with specified angle from myself.
Create new Matrix rotated with specified angle from myself .
pub fn rotate(&self, rad: f64) -> Matrix {
        let s = &self.0;
        let (sin, cos) = rad.sin_cos();
        Matrix([
            s[0] * cos - s[3] * sin,
            s[1] * cos - s[4] * sin,
            s[2] * cos - s[5] * sin,
            s[0] * sin + s[3] * cos,
            s[1] * sin + s[4] * cos,
            s[2] * sin + s[5] * cos,
        ])
    }
pub fn rotate ( & self , rad : f64 ) -> Matrix { let s = & self . 0 ; let ( sin , cos ) = rad . sin_cos ( ) ; Matrix ( [ s [ 0 ] * cos - s [ 3 ] * sin , s [ 1 ] * cos - s [ 4 ] * sin , s [ 2 ] * cos - s [ 5 ] * sin , s [ 0 ] * sin + s [ 3 ] * cos , s [ 1 ] * sin + s [ 4 ] * cos , s [ 2 ] * sin + s [ 5 ] * cos , ] ) }
Create new Matrix rotated with specified angle from myself.
Create new Matrix rotated with specified angle from myself .
&self
rad
f64