Trait truck_rendimpl::modeling::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

Rounds the value by tolerance

Loading content...

Implementations on Foreign Types

impl RoundByTolerance for f64

impl RoundByTolerance for Vector2<f64>

impl RoundByTolerance for Matrix4<f64>

impl RoundByTolerance for Vector1<f64>

impl RoundByTolerance for Vector4<f64>

impl RoundByTolerance for Matrix2<f64>

impl RoundByTolerance for Vector3<f64>

impl RoundByTolerance for Matrix3<f64>

Loading content...

Implementors

Loading content...