Struct pathfinder_geometry::vector::Vector2I
source · pub struct Vector2I(pub I32x2);
Expand description
2D points with 32-bit signed integer coordinates.
Tuple Fields§
§0: I32x2
Implementations§
source§impl Vector2I
impl Vector2I
pub fn new(x: i32, y: i32) -> Vector2I
pub fn splat(value: i32) -> Vector2I
pub fn zero() -> Vector2I
pub fn x(self) -> i32
pub fn y(self) -> i32
pub fn set_x(&mut self, x: i32)
pub fn set_y(&mut self, y: i32)
pub fn min(self, other: Vector2I) -> Vector2I
pub fn max(self, other: Vector2I) -> Vector2I
pub fn to_f32(self) -> Vector2F
Trait Implementations§
source§impl AddAssign for Vector2I
impl AddAssign for Vector2I
source§fn add_assign(&mut self, other: Vector2I)
fn add_assign(&mut self, other: Vector2I)
Performs the
+=
operation. Read moresource§impl PartialEq for Vector2I
impl PartialEq for Vector2I
impl Copy for Vector2I
impl Eq for Vector2I
Auto Trait Implementations§
impl Freeze for Vector2I
impl RefUnwindSafe for Vector2I
impl Send for Vector2I
impl Sync for Vector2I
impl Unpin for Vector2I
impl UnwindSafe for Vector2I
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more