Esempio n. 1
0
 protected bool Equals(Vect2f other)
 {
     return(X.NearlyEquals(other.X) && Y.NearlyEquals(other.Y));
 }
Esempio n. 2
0
 public Vect2f Lerp(Vect2f end, float t)
 {
     return((1 - t) * this + t * end);
 }
Esempio n. 3
0
 /// <summary>
 /// Calculate the Dot Product
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 public float DotProduct(Vect2f v)
 {
     return(X * v.X + Y * v.Y);
 }