pub trait Scalar: Copy {
const ZERO: Self;
const NEARLY_ZERO: Self;
const ONE: Self;
const HALF: Self;
// Required methods
fn nearly_equal(x: f32, y: f32, tolerance: impl Into<Option<f32>>) -> bool;
fn nearly_zero(&self, tolerance: impl Into<Option<f32>>) -> bool;
}
Required Associated Constants§
Required Methods§
fn nearly_equal(x: f32, y: f32, tolerance: impl Into<Option<f32>>) -> bool
fn nearly_zero(&self, tolerance: impl Into<Option<f32>>) -> bool
Object Safety§
This trait is not object safe.