[−][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 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 scale(self, factor: i32) -> Vector2I
[src]
pub fn scale_xy(self, factors: Vector2I) -> Vector2I
[src]
pub fn to_f32(self) -> Vector2F
[src]
Trait Implementations
impl Clone for Vector2I
[src]
impl Copy for Vector2I
[src]
impl Default for Vector2I
[src]
impl PartialEq<Vector2I> for Vector2I
[src]
impl Debug 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 Add<Vector2I> for Vector2I
[src]
type Output = Vector2I
The resulting type after applying the +
operator.
fn add(self, other: Vector2I) -> Vector2I
[src]
impl AddAssign<Vector2I> for Vector2I
[src]
fn add_assign(&mut self, other: Vector2I)
[src]
Auto Trait Implementations
impl Send for Vector2I
impl Sync for Vector2I
impl Unpin for Vector2I
impl UnwindSafe for Vector2I
impl RefUnwindSafe for Vector2I
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,