Skip to main content

ToRealPrecision

Trait ToRealPrecision 

Source
pub trait ToRealPrecision {
    type Adjusted;

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

Adjusts the precision of the math type to the Real number precision.

Required Associated Types§

Source

type Adjusted

The math type with the precision adjusted to Real.

Required Methods§

Source

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

Adjusts the precision of self to the Real number precision.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToRealPrecision for DQuat

Source§

type Adjusted = Quat

Source§

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

Source§

impl ToRealPrecision for DVec2

Source§

type Adjusted = Vec2

Source§

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

Source§

impl ToRealPrecision for DVec3

Source§

type Adjusted = Vec3

Source§

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

Source§

impl ToRealPrecision for Quat

Source§

type Adjusted = Quat

Source§

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

Source§

impl ToRealPrecision for Rot2

Source§

type Adjusted = Rot2

Source§

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

Source§

impl ToRealPrecision for Vec2

Source§

type Adjusted = Vec2

Source§

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

Source§

impl ToRealPrecision for Vec3

Source§

type Adjusted = Vec3

Source§

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

Source§

impl ToRealPrecision for f32

Source§

type Adjusted = f32

Source§

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

Source§

impl ToRealPrecision for f64

Source§

type Adjusted = f32

Source§

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

Implementors§

Source§

impl ToRealPrecision for DRot2

Source§

impl ToRealPrecision for Rotation

Available on crate feature 3d only.