Skip to main content

ToF32Precision

Trait ToF32Precision 

Source
pub trait ToF32Precision {
    type F32;

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

Adjusts the precision of the math type to f32.

Required Associated Types§

Source

type F32

The math type with the precision adjusted to f32.

Required Methods§

Source

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

Adjusts the precision of self to f32.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToF32Precision for DMat2

Source§

type F32 = Mat2

Source§

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

Source§

impl ToF32Precision for DMat3

Source§

type F32 = Mat3

Source§

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

Source§

impl ToF32Precision for DQuat

Source§

type F32 = Quat

Source§

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

Source§

impl ToF32Precision for DVec2

Source§

type F32 = Vec2

Source§

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

Source§

impl ToF32Precision for DVec3

Source§

type F32 = Vec3

Source§

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

Source§

impl ToF32Precision for Mat2

Source§

type F32 = Mat2

Source§

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

Source§

impl ToF32Precision for Mat3

Source§

type F32 = Mat3

Source§

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

Source§

impl ToF32Precision for Quat

Source§

type F32 = Quat

Source§

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

Source§

impl ToF32Precision for Rot2

Source§

type F32 = Rot2

Source§

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

Source§

impl ToF32Precision for SymmetricDMat2

Source§

type F32 = SymmetricMat2

Source§

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

Source§

impl ToF32Precision for SymmetricDMat3

Source§

type F32 = SymmetricMat3

Source§

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

Source§

impl ToF32Precision for SymmetricMat2

Source§

type F32 = SymmetricMat2

Source§

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

Source§

impl ToF32Precision for SymmetricMat3

Source§

type F32 = SymmetricMat3

Source§

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

Source§

impl ToF32Precision for Vec2

Source§

type F32 = Vec2

Source§

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

Source§

impl ToF32Precision for Vec3

Source§

type F32 = Vec3

Source§

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

Source§

impl ToF32Precision for Vec4

Source§

type F32 = Vec4

Source§

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

Source§

impl ToF32Precision for f32

Source§

type F32 = f32

Source§

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

Source§

impl ToF32Precision for f64

Source§

type F32 = f32

Source§

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

Implementors§