[][src]Trait quicksilver::geom::Scalar

pub trait Scalar: Copy {
    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 extreme precision

Required methods

fn float(self) -> f32

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 i8[src]

impl Scalar for i16[src]

impl Scalar for i32[src]

impl Scalar for f32[src]

Loading content...

Implementors

Loading content...