Trait radians::Float

source ·
pub trait Float: Copy + PartialEq + ToOrd + Add<Output = Self> + Sub<Output = Self> + Neg<Output = Self> + Mul<Output = Self> + Div<Output = Self> + IsNan + IsFinite + Signed + Round + Pow + Exp + Trig {
    const ZERO: Self;
    const PI: Self;
    const PI_OVER_TWO: Self;
    const TAU: Self;
    const SIXTY: Self;
    const NINETY: Self;
    const ONE_EIGHTY: Self;
    const THREE_SIXTY: Self;
    const MIN: Self;
    const MAX: Self;

    // Required method
    fn rem_euclid(self, _: Self) -> Self;
}
Expand description

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

Required Associated Constants§

source

const ZERO: Self

Additive identity, 0.

source

const PI: Self

Archimedes’ constant (π)

source

const PI_OVER_TWO: Self

π divided by two.

source

const TAU: Self

The full circle constant (τ)

source

const SIXTY: Self

The number 60.

source

const NINETY: Self

The number 90.

source

const ONE_EIGHTY: Self

The number 180.

source

const THREE_SIXTY: Self

The number 360.

source

const MIN: Self

Minimum finite value.

source

const MAX: Self

Maximum finite value.

Required Methods§

source

fn rem_euclid(self, _: Self) -> Self

Modulus operation.

Implementations on Foreign Types§

source§

impl Float for f32

source§

const ZERO: f32 = 0f32

source§

const PI: f32 = 3.14159274f32

source§

const PI_OVER_TWO: f32 = 1.57079637f32

source§

const TAU: f32 = 6.28318548f32

source§

const SIXTY: f32 = 60f32

source§

const NINETY: f32 = 90f32

source§

const ONE_EIGHTY: f32 = 180f32

source§

const THREE_SIXTY: f32 = 360f32

source§

const MIN: f32 = -3.40282347E+38f32

source§

const MAX: f32 = 3.40282347E+38f32

source§

fn rem_euclid(self, rhs: Self) -> Self

source§

impl Float for f64

source§

const ZERO: f64 = 0f64

source§

const PI: f64 = 3.1415926535897931f64

source§

const PI_OVER_TWO: f64 = 1.5707963267948966f64

source§

const TAU: f64 = 6.2831853071795862f64

source§

const SIXTY: f64 = 60f64

source§

const NINETY: f64 = 90f64

source§

const ONE_EIGHTY: f64 = 180f64

source§

const THREE_SIXTY: f64 = 360f64

source§

const MIN: f64 = -1.7976931348623157E+308f64

source§

const MAX: f64 = 1.7976931348623157E+308f64

source§

fn rem_euclid(self, rhs: Self) -> Self

Implementors§