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