Source/NFX/Geometry/CartesianUtils.cs
/// <summary>
/// Converts vector in 'x1, y1, x2, y2' representation to polar coordinate point
/// </summary>
Converts vector in 'x1, y1, x2, y2' representation to polar coordinate point
Converts vector in ' x1 y1 x2 y2 ' representation to polar coordinate point
public static PolarPoint VectorToPolarPoint(int centerX, int centerY, int pointX, int pointY)
    {
      double dist = Distance(centerX, centerY, pointX, pointY);
      double theta = AzimuthRad(centerX, centerY, pointX, pointY);
      return new PolarPoint(dist, theta);
    }
public static PolarPoint VectorToPolarPoint ( int centerX , int centerY , int pointX , int pointY ) { double dist = Distance ( centerX , centerY , pointX , pointY ) ; double theta = AzimuthRad ( centerX , centerY , pointX , pointY ) ; return new PolarPoint ( dist , theta ) ; }
Converts vector in 'x1, y1, x2, y2' representation to polar coordinate point
Converts vector in ' x1 y1 x2 y2 ' representation to polar coordinate point
centerX
int
centerY
int
pointX
int
pointY
int