Esempio n. 1
0
 public int Calculate(int x, int y, int d)
 {
     //return (int)(System.Math.Sqrt((uint)(x * x + y * y)));
     return((int)(PictorMath.FastSqrt((uint)(x * x + y * y))));
 }
Esempio n. 2
0
 public int Calculate(int x, int y, int d)
 {
     //return (int)System.Math.Sqrt((uint)(System.Math.Abs(x) * System.Math.Abs(y)));
     return((int)PictorMath.FastSqrt((uint)(System.Math.Abs(x) * System.Math.Abs(y))));
 }
Esempio n. 3
0
 // Actually the same as radial. Just for compatibility
 public int Calculate(int x, int y, int d)
 {
     return((int)(PictorMath.FastSqrt((uint)(x * x + y * y))));
 }