avian3d::math

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.

Implementations on Foreign Types§

source§

impl AsF32 for Mat3

source§

type F32 = Mat3

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 Quat

source§

type F32 = Quat

source§

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

source§

impl AsF32 for Vec4

source§

type F32 = Vec4

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 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

Implementors§