Source/NFX/Geometry/CartesianUtils.cs
/// <summary>
/// Calculates azimuth for vector in rads
/// </summary>
Calculates azimuth for vector in rads
Calculates azimuth for vector in rads
public static double AzimuthRad(int centerX, int centerY, int pointX, int pointY)
    {
      double theta = Math.Atan2(pointY - centerY, pointX - centerX);
      if (theta < 0)  
        theta = 2 * Math.PI + theta;
      return theta;
    }
public static double AzimuthRad ( int centerX , int centerY , int pointX , int pointY ) { double theta = Math . Atan2 ( pointY - centerY , pointX - centerX ) ; if ( theta < 0 ) theta = 2 * Math . PI + theta ; return theta ; }
Calculates azimuth for vector in rads
Calculates azimuth for vector in rads
// provide 0 - 2Pi "experience"
centerX
int
centerY
int
pointX
int
pointY
int