Trait tiny_skia::path64::Scalar64

source ·
pub trait Scalar64 {
Show 13 methods // Required methods fn bound(self, min: Self, max: Self) -> Self; fn between(self, a: f64, b: f64) -> bool; fn precisely_zero(self) -> bool; fn approximately_zero_or_more(self) -> bool; fn approximately_one_or_less(self) -> bool; fn approximately_zero(self) -> bool; fn approximately_zero_inverse(self) -> bool; fn approximately_zero_cubed(self) -> bool; fn approximately_zero_half(self) -> bool; fn approximately_zero_when_compared_to(self, other: Self) -> bool; fn approximately_equal(self, other: Self) -> bool; fn approximately_equal_half(self, other: Self) -> bool; fn almost_dequal_ulps(self, other: Self) -> bool;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Scalar64 for f64

source§

fn between(self, a: f64, b: f64) -> bool

Returns true if (a <= self <= b) || (a >= self >= b).

source§

fn bound(self, min: Self, max: Self) -> Self

source§

fn precisely_zero(self) -> bool

source§

fn approximately_zero_or_more(self) -> bool

source§

fn approximately_one_or_less(self) -> bool

source§

fn approximately_zero(self) -> bool

source§

fn approximately_zero_inverse(self) -> bool

source§

fn approximately_zero_cubed(self) -> bool

source§

fn approximately_zero_half(self) -> bool

source§

fn approximately_zero_when_compared_to(self, other: Self) -> bool

source§

fn approximately_equal(self, other: Self) -> bool

source§

fn approximately_equal_half(self, other: Self) -> bool

source§

fn almost_dequal_ulps(self, other: Self) -> bool

Implementors§