pub type Vector2f = Vector2<f32>;
Expand description
export Vector2
Aliased Type§
struct Vector2f {
pub x: f32,
pub y: f32,
}
Fields§
§x: f32
X coordinate of the vector.
y: f32
Y coordinate of the vector.
Implementations
Trait Implementations§
Source§impl ToVec for Vector2f
impl ToVec for Vector2f
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