pub const fn scale(s: Vec3) -> Self {
        let mut res = Self::identity();

        res.values[cr(0, 0)] = s.x;
        res.values[cr(1, 1)] = s.y;
        res.values[cr(2, 2)] = s.z;

        res
    }
/// Creates a 3D scale matrix.
Creates a 3D scale matrix.
Creates a 3D scale matrix .
pub const fn scale(s: Vec3) -> Self {
        let mut res = Self::identity();
        res.values[cr(0, 0)] = s.x;
        res.values[cr(1, 1)] = s.y;
        res.values[cr(2, 2)] = s.z;
        res
    }
pub const fn scale ( s : Vec3 ) -> Self { let mut res = Self :: identity ( ) ; res . values [ cr ( 0 , 0 ) ] = s . x ; res . values [ cr ( 1 , 1 ) ] = s . y ; res . values [ cr ( 2 , 2 ) ] = s . z ; res }
Creates a 3D scale matrix.
Creates a 3D scale matrix .
s
Vec3
s
Vec3