Exemplo n.º 1
0
 public double ScalarProjectionOnto(Vector3D b)
 {
     return Dot(this, b) / b.Magnitude();
 }
Exemplo n.º 2
0
 /// <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())));
 }
Exemplo n.º 3
0
 /// <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()));
 }
Exemplo n.º 4
0
 public double ScalarProjectionOnto(Vector3D b)
 {
     return(Dot(this, b) / b.Magnitude());
 }