bgc-net/BasicGeometry/Angle.cs

32 lines
672 B
C#

/*
* Author: Andrey Pokidov
* License: Apache-2.0
* Date: 1 Feb 2019
*/
namespace BasicGeometry
{
public enum AngleUnit
{
RADIANS = 1,
DEGREES = 2,
TURNS = 3,
}
public enum AngleRange
{
/// <summary>
/// The measure of an angle with a range of:
/// [0, 360) degrees, [0, 2xPI) radians, [0, 1) turns, [0, 400) gradians
/// </summary>
UNSIGNED_RANGE = 1,
/// <summary>
/// The measure of an angle with a range of:
/// (-180, 180] degrees, (-PI, PI] radians, (-0.5, 0.5] turns, (-200, 200] gradians
/// </summary>
SIGNED_RANGE = 2
}
}