pub fn from_matrix(matrix: Mat4) -> Self {
        let (scale, rotation, translation) = matrix.to_scale_rotation_translation();

        Transform {
            translation,
            rotation,
            scale,
        }
    }
/// Extracts the translation, rotation, and scale from `matrix`. It must be a 3d affine
/// transformation matrix.
Extracts the translation, rotation, and scale from `matrix`. It must be a 3d affine
transformation matrix.
Extracts the translation rotation and scale from ` matrix ` . It must be a 3d affine transformation matrix .
pub fn from_matrix(matrix: Mat4) -> Self {
        let (scale, rotation, translation) = matrix.to_scale_rotation_translation();
        Transform {
            translation,
            rotation,
            scale,
        }
    }
pub fn from_matrix ( matrix : Mat4 ) -> Self { let ( scale , rotation , translation ) = matrix . to_scale_rotation_translation ( ) ; Transform { translation , rotation , scale , } }
Extracts the translation, rotation, and scale from `matrix`.
Extracts the translation rotation and scale from ` matrix ` .
matrix
Mat4
matrix
Mat4