public double ScalarProjectionOnto(Vector3D b) { return Dot(this, b) / b.Magnitude(); }
/// <summary> /// Gets the angle of this object relative to the absolute X+ axis /// The angle returned is in radians. /// </summary> public float GetAngleBetween(Vector3D v) { return((float)Math.Acos((this.Dot(v)) / (this.Magnitude() * v.Magnitude()))); }
/// <summary> /// Gets the angle of this object relative to the absolute X+ axis /// The angle returned is in radians. /// </summary> public float GetAngleBetween(Vector3D v) { return (float)Math.Acos((this.Dot(v)) / (this.Magnitude() * v.Magnitude())); }
public double ScalarProjectionOnto(Vector3D b) { return(Dot(this, b) / b.Magnitude()); }