Skip to main content

IVector

Type Alias IVector 

Source
pub type IVector = IVec2;
Expand description

The integer vector type.

Aliased Type§

#[repr(C)]
pub struct IVector { pub x: i32, pub y: i32, }

Fields§

§x: i32§y: i32

Trait Implementations§

Source§

impl IVectorExt for IVector

Source§

fn ivget(&self, i: usize) -> i32

Gets the i-th component of the integer vector by index.
Source§

fn ivset(&mut self, i: usize, val: i32)

Sets the i-th component of the integer vector by index.