[][src]Trait batbox::Float

pub trait Float: Num {
    const PI: Self;

    fn signum(self) -> Self;
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn sqrt(self) -> Self;
fn tan(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn sin_cos(self) -> (Self, Self);
fn atan2(y: Self, x: Self) -> Self;
fn is_finite(self) -> bool;
fn as_f32(self) -> f32; }

Associated Constants

const PI: Self

Loading content...

Required methods

fn signum(self) -> Self

fn floor(self) -> Self

fn ceil(self) -> Self

fn sqrt(self) -> Self

fn tan(self) -> Self

fn sin(self) -> Self

fn cos(self) -> Self

fn sin_cos(self) -> (Self, Self)

fn atan2(y: Self, x: Self) -> Self

fn is_finite(self) -> bool

fn as_f32(self) -> f32

Loading content...

Implementations on Foreign Types

impl Float for f32[src]

impl Float for f64[src]

Loading content...

Implementors

impl<T: Real> Float for T[src]

Loading content...