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

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

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