pub type Vector2u = Vector2<u32>;
Expand description
export Vector2
Aliased Type§
struct Vector2u {
pub x: u32,
pub y: u32,
}
Fields§
§x: u32
X coordinate of the vector.
y: u32
Y coordinate of the vector.
Implementations
Trait Implementations§
Source§impl ToVec for Vector2u
impl ToVec for Vector2u
Source§fn to_vector2f(&self) -> Vector2f
fn to_vector2f(&self) -> Vector2f
Convert the current Vector2 to a Vector2f
Source§fn to_vector2i(&self) -> Vector2i
fn to_vector2i(&self) -> Vector2i
Convert the current Vector2 to a Vector2i
Source§fn to_vector2u(&self) -> Vector2u
fn to_vector2u(&self) -> Vector2u
Convert the current Vector2f to a Vector2u
Source§impl<T: Ord> Ord for Vector2<T>
impl<T: Ord> Ord for Vector2<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more