Module angle

Module angle 

Source
Expand description

Angular quantities, including scalar angles and angular vectors.

Structs§

Angle
A scalar angular quantity.
Polar
Tag type for a polar coordinate space
Spherical
Tag type for a spherical coordinate space.

Functions§

acos
Returns the arccosine of x as an Angle.
asin
Returns the arcsine of x as an Angle.
atan2
Returns the four-quadrant arctangent of y and x as an Angle.
degs
Returns an angle of a degrees.
polar
Returns a polar coordinate vector with azimuth az and radius r.
rads
Returns an angle of a radians.
spherical
Returns a spherical coordinate vector with azimuth az, altitude alt, and radius r.
turns
Returns an angle of a turns.

Type Aliases§

PolarVec
A polar coordinate vector, with radius and azimuth components.
SphericalVec
A spherical coordinate vector, with radius, azimuth, and altitude (elevation) components.