pub fn transform_dir(self, rhs: ::Mat4) -> Self {
		let x = rhs.0[0]*self.x + rhs.0[4]*self.y + rhs.0[8]*self.z;
		let y = rhs.0[1]*self.x + rhs.0[5]*self.y + rhs.0[9]*self.z;
		let z = rhs.0[2]*self.x + rhs.0[6]*self.y + rhs.0[10]*self.z;

		Self::new(x, y, z)
	}
/// Multiply matrix onto Vec3 (as directional vector)
Multiply matrix onto Vec3 (as directional vector)
Multiply matrix onto Vec3 ( as directional vector )
pub fn transform_dir(self, rhs: ::Mat4) -> Self {
		let x = rhs.0[0]*self.x + rhs.0[4]*self.y + rhs.0[8]*self.z;
		let y = rhs.0[1]*self.x + rhs.0[5]*self.y + rhs.0[9]*self.z;
		let z = rhs.0[2]*self.x + rhs.0[6]*self.y + rhs.0[10]*self.z;
		Self::new(x, y, z)
	}
pub fn transform_dir ( self , rhs : :: Mat4 ) -> Self { let x = rhs . 0 [ 0 ] * self . x + rhs . 0 [ 4 ] * self . y + rhs . 0 [ 8 ] * self . z ; let y = rhs . 0 [ 1 ] * self . x + rhs . 0 [ 5 ] * self . y + rhs . 0 [ 9 ] * self . z ; let z = rhs . 0 [ 2 ] * self . x + rhs . 0 [ 6 ] * self . y + rhs . 0 [ 10 ] * self . z ; Self :: new ( x , y , z ) }
Multiply matrix onto Vec3 (as directional vector)
Multiply matrix onto Vec3 ( as directional vector )
self
rhs
::Mat4