Esempio n. 1
0
 private double FindDistance_quadratic(Vector2 point, int px, int py)
 {
     return point.DistanceToSquared(new Vector2(px + 0.5, py + 0.5));
 }
Esempio n. 2
0
 private double FindDistance_cubic(Vector2 point, int px, int py)
 {
     return Math.Pow(point.DistanceToSquared(new Vector2(px + 0.5, py + 0.5)), 1.5);
 }