pub fn translation_matrix(&self) -> Matrix4x4 {
        Matrix4x4 {
            a1: 1.0, a2: 0.0, a3: 0.0, a4: self.x,
            b1: 0.0, b2: 1.0, b3: 0.0, b4: self.y,
            c1: 0.0, c2: 0.0, c3: 1.0, c4: self.z,
            d1: 0.0, d2: 0.0, d3: 0.0, d4: 1.0,
        }
    }
/// Create a translation matrix from this vector
Create a translation matrix from this vector
Create a translation matrix from this vector
pub fn translation_matrix(&self) -> Matrix4x4 {
        Matrix4x4 {
            a1: 1.0, a2: 0.0, a3: 0.0, a4: self.x,
            b1: 0.0, b2: 1.0, b3: 0.0, b4: self.y,
            c1: 0.0, c2: 0.0, c3: 1.0, c4: self.z,
            d1: 0.0, d2: 0.0, d3: 0.0, d4: 1.0,
        }
    }
pub fn translation_matrix ( & self ) -> Matrix4x4 { Matrix4x4 { a1 : 1.0 , a2 : 0.0 , a3 : 0.0 , a4 : self . x , b1 : 0.0 , b2 : 1.0 , b3 : 0.0 , b4 : self . y , c1 : 0.0 , c2 : 0.0 , c3 : 1.0 , c4 : self . z , d1 : 0.0 , d2 : 0.0 , d3 : 0.0 , d4 : 1.0 , } }
Create a translation matrix from this vector
Create a translation matrix from this vector
&self
&self