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 DMat2

Source§

type F32 = Mat2

Source§

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

Source§

impl AsF32 for DMat3

Source§

type F32 = Mat3

Source§

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

Source§

impl AsF32 for DQuat

Source§

type F32 = Quat

Source§

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

Source§

impl AsF32 for DVec2

Source§

type F32 = Vec2

Source§

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

Source§

impl AsF32 for DVec3

Source§

type F32 = Vec3

Source§

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

Source§

impl AsF32 for Mat2

Source§

type F32 = Mat2

Source§

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

Source§

impl AsF32 for Mat3

Source§

type F32 = Mat3

Source§

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

Source§

impl AsF32 for Quat

Source§

type F32 = Quat

Source§

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

Source§

impl AsF32 for SymmetricDMat2

Source§

type F32 = SymmetricMat2

Source§

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

Source§

impl AsF32 for SymmetricDMat3

Source§

type F32 = SymmetricMat3

Source§

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

Source§

impl AsF32 for SymmetricMat2

Source§

type F32 = SymmetricMat2

Source§

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

Source§

impl AsF32 for SymmetricMat3

Source§

type F32 = SymmetricMat3

Source§

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

Source§

impl AsF32 for Vec2

Source§

type F32 = Vec2

Source§

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

Source§

impl AsF32 for Vec3

Source§

type F32 = Vec3

Source§

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

Source§

impl AsF32 for Vec4

Source§

type F32 = Vec4

Source§

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

Implementors§