pub fn angle(&self, other: Vec3) -> f32 {
		let mag1 = (self.x as f64)
			.hypot(self.y as f64)
			.hypot(self.z as f64);
		let mag2 = (other.x as f64)
			.hypot(other.y as f64)
			.hypot(other.z as f64);
		let dot = ((self.x as f64) * (other.x as f64))
			+ ((self.y as f64) * (other.y as f64))
			+ ((self.z as f64) * (other.z as f64));

		(dot / (mag1 * mag2)).acos() as f32
	}
/// Calculate angle between 2 Vec3's
Calculate angle between 2 Vec3's
Calculate angle between 2 Vec3 ' s
pub fn angle(&self, other: Vec3) -> f32 {
		let mag1 = (self.x as f64)
			.hypot(self.y as f64)
			.hypot(self.z as f64);
		let mag2 = (other.x as f64)
			.hypot(other.y as f64)
			.hypot(other.z as f64);
		let dot = ((self.x as f64) * (other.x as f64))
			+ ((self.y as f64) * (other.y as f64))
			+ ((self.z as f64) * (other.z as f64));
		(dot / (mag1 * mag2)).acos() as f32
	}
pub fn angle ( & self , other : Vec3 ) -> f32 { let mag1 = ( self . x as f64 ) . hypot ( self . y as f64 ) . hypot ( self . z as f64 ) ; let mag2 = ( other . x as f64 ) . hypot ( other . y as f64 ) . hypot ( other . z as f64 ) ; let dot = ( ( self . x as f64 ) * ( other . x as f64 ) ) + ( ( self . y as f64 ) * ( other . y as f64 ) ) + ( ( self . z as f64 ) * ( other . z as f64 ) ) ; ( dot / ( mag1 * mag2 ) ) . acos ( ) as f32 }
Calculate angle between 2 Vec3's
Calculate angle between 2 Vec3 ' s
&self
other
Vec3