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