[][src]Trait skia_safe::Scalar

pub trait Scalar: Copy {
    const NEARLY_ZERO: Self;
    const ONE: Self;
    const HALF: Self;

    fn nearly_equal(
        x: scalar,
        y: scalar,
        tolerance: impl Into<Option<scalar>>
    ) -> bool;
fn nearly_zero(&self, tolerance: impl Into<Option<scalar>>) -> bool; }

Associated Constants

const NEARLY_ZERO: Self

const ONE: Self

const HALF: Self

Loading content...

Required methods

fn nearly_equal(
    x: scalar,
    y: scalar,
    tolerance: impl Into<Option<scalar>>
) -> bool

fn nearly_zero(&self, tolerance: impl Into<Option<scalar>>) -> bool

Loading content...

Implementors

impl Scalar for scalar[src]

Loading content...