Trait ToVec

Source
pub trait ToVec {
    // Required methods
    fn to_vector2f(&self) -> Vector2f;
    fn to_vector2i(&self) -> Vector2i;
    fn to_vector2u(&self) -> Vector2u;
}
Expand description

Utility trait to convert a Vector2 on another type

Required Methods§

Source

fn to_vector2f(&self) -> Vector2f

Convert the current Vector2 to a Vector2f

Source

fn to_vector2i(&self) -> Vector2i

Convert the current Vector2 to a Vector2i

Source

fn to_vector2u(&self) -> Vector2u

Convert the current Vector2f to a Vector2u

Implementors§