Trait sfml_types::ToVec [] [src]

pub trait ToVec {
    fn to_vector2f(&self) -> Vector2f;
    fn to_vector2i(&self) -> Vector2i;
    fn to_vector2u(&self) -> Vector2u;
}

Utility trait to convert a Vector2 on another type

Required Methods

Convert the current Vector2 to a Vector2f

Convert the current Vector2 to a Vector2i

Convert the current Vector2f to a Vector2u

Implementors