WorldWind Source Analysis Series: Angle class

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.