Exemplo 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))));
 }
Exemplo 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))));
 }
Exemplo 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))));
 }