avian2d::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§