Trait truck_rendimpl::modeling::Tolerance[]

pub trait Tolerance: Debug + AbsDiffEq<Self, Epsilon = f64> {
    pub fn near(&self, other: &Self) -> bool { ... }
pub fn near2(&self, other: &Self) -> bool { ... }
pub fn assert_near(one: &Self, other: &Self) { ... }
pub fn assert_near2(one: &Self, other: &Self) { ... } }

Defines a tolerance in the whole package

Provided methods

pub fn near(&self, other: &Self) -> bool

The “distance” is less than TOLERANCE.

pub fn near2(&self, other: &Self) -> bool

The “distance” is less than TOLERANCR2.

pub fn assert_near(one: &Self, other: &Self)

assert if one is not near other.

pub fn assert_near2(one: &Self, other: &Self)

assertion if one is not near other in square order.

Loading content...

Implementations on Foreign Types

impl Tolerance for Point2<f64>

impl Tolerance for Matrix4<f64>

impl Tolerance for Vector3<f64>

impl Tolerance for Vector1<f64>

impl Tolerance for f64

impl Tolerance for Point1<f64>

impl Tolerance for Vector2<f64>

impl Tolerance for Matrix2<f64>

impl Tolerance for Matrix3<f64>

impl Tolerance for Vector4<f64>

impl Tolerance for Point3<f64>

impl Tolerance for [f64]

Loading content...

Implementors

Loading content...