Skip to main content

AsF32

Trait AsF32 

Source
pub trait AsF32 {
    type F32;

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

Adjust the precision down to f32 regardless of compilation.

Required Associated Types§

Source

type F32

The f32 version of a math construct.

Required Methods§

Source

fn f32(&self) -> Self::F32

Returns the f32 version of this type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AsF32 for DQuat

Source§

type F32 = Quat

Source§

fn f32(&self) -> <DQuat as AsF32>::F32

Source§

impl AsF32 for DVec2

Source§

type F32 = Vec2

Source§

fn f32(&self) -> <DVec2 as AsF32>::F32

Source§

impl AsF32 for DVec3

Source§

type F32 = Vec3

Source§

fn f32(&self) -> <DVec3 as AsF32>::F32

Source§

impl AsF32 for Quat

Source§

type F32 = Quat

Source§

fn f32(&self) -> <Quat as AsF32>::F32

Source§

impl AsF32 for Vec2

Source§

type F32 = Vec2

Source§

fn f32(&self) -> <Vec2 as AsF32>::F32

Source§

impl AsF32 for Vec3

Source§

type F32 = Vec3

Source§

fn f32(&self) -> <Vec3 as AsF32>::F32

Source§

impl AsF32 for f32

Source§

type F32 = f32

Source§

fn f32(&self) -> <f32 as AsF32>::F32

Source§

impl AsF32 for f64

Source§

type F32 = f32

Source§

fn f32(&self) -> <f64 as AsF32>::F32

Implementors§