num_opt::my_float

Type Alias Fpt

Source
pub type Fpt = f64;

Trait Implementations§

Source§

impl MyFloat for Fpt

Source§

fn precision() -> u32

Source§

fn from_f(f: Fpt) -> Self

Source§

fn from_f_fraction(n: Fpt, d: Fpt) -> Self

Source§

fn to_f(&self) -> Fpt

Source§

fn floor(&self) -> Self

Source§

fn sqrt(&self) -> Self

Source§

fn clamp(&self, min: Fpt, max: Fpt) -> Self

Source§

fn sin(&self) -> Self

Source§

fn cos(&self) -> Self

Source§

fn acos(&self) -> Self

Source§

fn is_nan(&self) -> bool

Source§

fn max(&self, other: &Self) -> Self

Source§

fn min(&self, other: &Self) -> Self

Source§

fn abs(&self) -> Self

Source§

fn one() -> Self

Source§

fn zero() -> Self

Source§

fn atan2(&self, other: &Self) -> Self