src/Azos/Geometry/CartesianUtils.cs
/// <summary>
/// Calculates azimuth for vector in degrees
/// </summary>
Calculates azimuth for vector in degrees
Calculates azimuth for vector in degrees
public static int AzimuthOfRadix(int centerX, int centerY, int pointX, int pointY, int radix)
    {
      if (radix < 2) radix = 2;
      var angle = AzimuthRad(centerX, centerY, pointX, pointY);
      var half = Math.PI / (double)radix;
      angle = WrapAngle(angle, half);
      return (int)(Math.Floor((angle / PI2) * radix));
    }
public static int AzimuthOfRadix ( int centerX , int centerY , int pointX , int pointY , int radix ) { if ( radix < 2 ) radix = 2 ; var angle = AzimuthRad ( centerX , centerY , pointX , pointY ) ; var half = Math . PI / ( double ) radix ; angle = WrapAngle ( angle , half ) ; return ( int ) ( Math . Floor ( ( angle / PI2 ) * radix ) ) ; }
Calculates azimuth for vector in degrees
Calculates azimuth for vector in degrees
centerX
int
centerY
int
pointX
int
pointY
int
radix
int