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

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

Structs

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

Traits

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

Type Definitions

An angle measured in degrees.
A 32-bit angle measured in degrees.
A 64-bit angle measured in degrees.
An angle measured in radians.
A 32-bit angle measured in radians.
A 64-bit angle measured in radians.
A 32-bit angle measured in radians that wraps between -π and +π.
A 64-bit angle measured in radians that wraps between -π and +π.