Source/NFX/Geometry/CartesianUtils.cs
/// <summary>
/// Converts map direction to angular coordinate in radians
/// </summary>
Converts map direction to angular coordinate in radians
Converts map direction to angular coordinate in radians
public static double MapDirectionToAngle(MapDirection direction)
    {
       switch (direction)
       {
         case MapDirection.North:  return 4d/16d * PI2;
         case MapDirection.South:  return 12d/16d * PI2;
         case MapDirection.East:   return 0.0d;
         case MapDirection.West:   return 8d/16d * PI2;
         case MapDirection.NorthEast: return 2d/16d * PI2;
         case MapDirection.NorthWest: return 6d/16d * PI2;
         case MapDirection.SouthEast: return 14d/16d * PI2;
         case MapDirection.SouthWest: return 10d/16d * PI2;
         default: return 0.0d;
       }
    }
public static double MapDirectionToAngle ( MapDirection direction ) { switch ( direction ) { case MapDirection . North : return 4d / 16d * PI2 ; case MapDirection . South : return 12d / 16d * PI2 ; case MapDirection . East : return 0.0d ; case MapDirection . West : return 8d / 16d * PI2 ; case MapDirection . NorthEast : return 2d / 16d * PI2 ; case MapDirection . NorthWest : return 6d / 16d * PI2 ; case MapDirection . SouthEast : return 14d / 16d * PI2 ; case MapDirection . SouthWest : return 10d / 16d * PI2 ; default : return 0.0d ; } }
Converts map direction to angular coordinate in radians
Converts map direction to angular coordinate in radians
direction
MapDirection