Type Alias Vector2i

Source
pub type Vector2i = Vector2<i32>;
Expand description

export Vector2 as Vector2i

Aliased Type§

struct Vector2i {
    pub x: i32,
    pub y: i32,
}

Fields§

§x: i32

X coordinate of the vector.

§y: i32

Y coordinate of the vector.

Trait Implementations§

Source§

impl ToVec for Vector2i

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