[−][src]Struct pathfinder_geometry::vector::Vector2I
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.
fn add(self, other: Vector2I) -> Vector2I
[src]
impl Add<i32> for Vector2I
[src]
type Output = Vector2I
The resulting type after applying the +
operator.
fn add(self, other: i32) -> Vector2I
[src]
impl AddAssign<Vector2I> for Vector2I
[src]
fn add_assign(&mut self, other: 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]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<Vector2I> for Vector2I
[src]
type Output = Vector2I
The resulting type after applying the *
operator.
fn mul(self, other: Vector2I) -> Vector2I
[src]
impl Mul<i32> for Vector2I
[src]
type Output = Vector2I
The resulting type after applying the *
operator.
fn mul(self, other: i32) -> Vector2I
[src]
impl Neg for Vector2I
[src]
type Output = Vector2I
The resulting type after applying the -
operator.
fn neg(self) -> Vector2I
[src]
impl PartialEq<Vector2I> for Vector2I
[src]
impl Sub<Vector2I> for Vector2I
[src]
type Output = Vector2I
The resulting type after applying the -
operator.
fn sub(self, other: Vector2I) -> Vector2I
[src]
impl Sub<i32> for Vector2I
[src]
Auto Trait Implementations
impl RefUnwindSafe for Vector2I
impl Send for Vector2I
impl Sync for Vector2I
impl Unpin for Vector2I
impl UnwindSafe for Vector2I
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,