Skip to main content

AdjustPrecision

Trait AdjustPrecision 

Source
pub trait AdjustPrecision {
    type Adjusted;

    // Required method
    fn adjust_precision(&self) -> Self::Adjusted;
}
Expand description

Adjust the precision of the math construct to the precision chosen for compilation.

Required Associated Types§

Source

type Adjusted

A math construct type with the desired precision.

Required Methods§

Source

fn adjust_precision(&self) -> Self::Adjusted

Adjusts the precision of self to Self::Adjusted.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AdjustPrecision for Quat

Source§

impl AdjustPrecision for Vec2

Source§

impl AdjustPrecision for Vec3

Source§

impl AdjustPrecision for f32

Implementors§