logo
pub struct Angle<T> {
    pub radians: T,
}
Expand description

An angle in radians. An angle in radians

Fields

radians: T

Implementations

An angle in radians.

An angle in radians.

An angle in radians.

Returns this angle in the [0..2*PI[ range.

Returns this angle in the ]-PI..PI] range.

An angle in radians.

Returns the shortest signed angle between two angles.

Takes wrapping and signs into account.

Linear interpolation between two angles, using the shortest path.

An angle in radians.

Returns true if the angle is a finite number.

An angle in radians.

Returns (sin(self), cos(self)).

An angle in radians.

An angle in radians.

An angle in radians.

Cast from one numeric representation to another.

Fallible cast from one numeric representation to another.

Cast angle to f32.

Cast angle f64.

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Default epsilon value

Returns true is this object is approximately equal to the other one, using a provided epsilon value. Read more

Returns true is this object is approximately equal to the other one, using the approx_epsilon() epsilon value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.