Ejemplo n.º 1
0
 protected bool Equals(Vect2f other)
 {
     return(X.NearlyEquals(other.X) && Y.NearlyEquals(other.Y));
 }
Ejemplo n.º 2
0
 public Vect2f Lerp(Vect2f end, float t)
 {
     return((1 - t) * this + t * end);
 }
Ejemplo 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);
 }