Type Alias Vector2f

Source
pub type Vector2f = Vector2<f32>;
Expand description

export Vector2 as Vector2f

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.

Trait Implementations§

Source§

impl ToVec for Vector2f

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