Crate radians

Source
Expand description

A crate for storing angles.

Exports the types Rad32 and Rad64 for dealing with angles in radians, as well as Wrap32 and Wrap64 for angles that automatically wrap around -π and +π.

Supports custom formatting in terms of degrees, minutes, and seconds, via the Rad{32, 64}.deg() method.

Modules§

ops
Contains a set of traits that must be implemented on a type for it to be used in this crate.

Structs§

Angle
An angle backed by a floating-point number.
Degrees
Radians
Wrap
An angle that wraps between a negative half turn and a positive half turn.

Traits§

Float
A floating-point number that serves as the backing value of an Angle.
Unit
A unit of measurement for an Angle.

Type Aliases§

Deg
An angle measured in degrees.
Deg32
A 32-bit angle measured in degrees.
Deg64
A 64-bit angle measured in degrees.
Rad
An angle measured in radians.
Rad32
A 32-bit angle measured in radians.
Rad64
A 64-bit angle measured in radians.
Wrap32
A 32-bit angle measured in radians that wraps between -π and +π.
Wrap64
A 64-bit angle measured in radians that wraps between -π and +π.