[][src]Trait truck_geometry::base::RoundByTolerance

pub trait RoundByTolerance: Tolerance {
    pub fn round_by_tolerance(&mut self) -> &mut Self;
}

Rounds the value by tolerance

Example

use truck_base::{cgmath64::*, tolerance::*};
assert_eq!(1.23456789_f64.round_by_tolerance(), &1.2345678);

Required methods

pub fn round_by_tolerance(&mut self) -> &mut Self[src]

Rounds the value by tolerance

Loading content...

Implementations on Foreign Types

impl RoundByTolerance for f64[src]

impl RoundByTolerance for Vector2<f64>[src]

impl RoundByTolerance for Vector3<f64>[src]

impl RoundByTolerance for Matrix4<f64>[src]

impl RoundByTolerance for Vector1<f64>[src]

impl RoundByTolerance for Matrix3<f64>[src]

impl RoundByTolerance for Matrix2<f64>[src]

impl RoundByTolerance for Vector4<f64>[src]

Loading content...

Implementors

Loading content...