The angle structure body angle class diagram in PLUGINSDK is shown below.
The angular structure defines a field that represents an angle value in radians: Double Radians. There are also several fields that represent angle maximums, minimums, non-numeric, and 0 angles. A degrees attribute is defined, which is used to set up and obtain the radians field value by using the Radian and angle reciprocal conversion functions of the mathematical engine class respectively.
Public double Degrees
{
get {return mathengine.radianstodegrees (this. Radians);}
set {this. Radians = Mathengine.degreestoradians (value); }
}
In the method, Fromradians and Fromdegrees respectively implement a field double radians from radians and angles to the angle value of the structure to obtain the corresponding value. Abs, IsNaN, Equals, GetHashCode, Normalize, Tostringdms, ToString respectively achieve the absolute value of the angle, determine whether it is non-numeric, equal, return hash code, normalize, convert to degrees, seconds, The ability to convert directly to a string.
Overloads such as add, subtract, multiply, divide, equal, not equal, greater than, and less than operators are used for angular object operations.
WorldWind Source Analysis Series: Angle class