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§
Sourcefn to_vector2f(&self) -> Vector2f
fn to_vector2f(&self) -> Vector2f
Convert the current Vector2 to a Vector2f
Sourcefn to_vector2i(&self) -> Vector2i
fn to_vector2i(&self) -> Vector2i
Convert the current Vector2 to a Vector2i
Sourcefn to_vector2u(&self) -> Vector2u
fn to_vector2u(&self) -> Vector2u
Convert the current Vector2f to a Vector2u