[][src]Trait paddle::Scalar

pub trait Scalar: Copy {
    pub fn float(self) -> f32;
}

A Scalar type that can be converted to a component of a Vector

It does not necessarily have to be a lossless conversion, because the geometry module focuses on ease of use and speed over precision

Required methods

pub fn float(self) -> f32[src]

Cast the scalar into an f32, which is how a Vector represents it

Loading content...

Implementations on Foreign Types

impl Scalar for u8[src]

impl Scalar for u16[src]

impl Scalar for u32[src]

impl Scalar for u64[src]

impl Scalar for usize[src]

impl Scalar for i8[src]

impl Scalar for i16[src]

impl Scalar for i32[src]

impl Scalar for i64[src]

impl Scalar for isize[src]

impl Scalar for f32[src]

impl Scalar for f64[src]

Loading content...

Implementors

Loading content...