[][src]Struct pathfinder_geometry::vector::Vector2I

pub struct Vector2I(pub I32x2);

2D points with 32-bit signed integer coordinates.

Methods

impl Vector2I[src]

pub fn new(x: i32, y: i32) -> Vector2I[src]

pub fn splat(value: i32) -> Vector2I[src]

pub fn zero() -> Vector2I[src]

pub fn x(self) -> i32[src]

pub fn y(self) -> i32[src]

pub fn set_x(&mut self, x: i32)[src]

pub fn set_y(&mut self, y: i32)[src]

pub fn min(self, other: Vector2I) -> Vector2I[src]

pub fn max(self, other: Vector2I) -> Vector2I[src]

pub fn to_f32(self) -> Vector2F[src]

Trait Implementations

impl Add<Vector2I> for Vector2I[src]

type Output = Vector2I

The resulting type after applying the + operator.

impl Add<i32> for Vector2I[src]

type Output = Vector2I

The resulting type after applying the + operator.

impl AddAssign<Vector2I> for Vector2I[src]

impl Clone for Vector2I[src]

impl Copy for Vector2I[src]

impl Debug for Vector2I[src]

impl Default for Vector2I[src]

impl Eq for Vector2I[src]

impl Hash for Vector2I[src]

impl Mul<Vector2I> for Vector2I[src]

type Output = Vector2I

The resulting type after applying the * operator.

impl Mul<i32> for Vector2I[src]

type Output = Vector2I

The resulting type after applying the * operator.

impl Neg for Vector2I[src]

type Output = Vector2I

The resulting type after applying the - operator.

impl PartialEq<Vector2I> for Vector2I[src]

impl Sub<Vector2I> for Vector2I[src]

type Output = Vector2I

The resulting type after applying the - operator.

impl Sub<i32> for Vector2I[src]

type Output = Vector2I

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.