[−][src]Struct fpn::cg::Vector2
Vector2 provides the common 2D coordinates container
Common ops
traits are implemented for primitive types and FPN.
Vector2 is not Copy
, so try use reference when getting borrow conflicts, like
use fpn::Vector2; let v = Vector2::new(1f32, 1f32); // let added = v + v; // this will panic let added = &v + &v; // or let double = v * 2f32;
Dot product and cross product are provided with trait Dot
and Cross
.
For cross product of Vector2, x
is the true value while y
holds the signum
of x
For Vector2<FPN>
, bitwize shift is provided too.
Fields
x: T
y: T
Implementations
impl<T> Vector2<T>
[src]
impl<F> Vector2<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i8, y: i8) -> Self
[src]
pub fn set_x(&mut self, v: i8)
[src]
pub fn set_y(&mut self, v: i8)
[src]
impl<F> Vector2<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i16, y: i16) -> Self
[src]
pub fn set_x(&mut self, v: i16)
[src]
pub fn set_y(&mut self, v: i16)
[src]
impl<F> Vector2<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i32, y: i32) -> Self
[src]
pub fn set_x(&mut self, v: i32)
[src]
pub fn set_y(&mut self, v: i32)
[src]
impl<F> Vector2<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i64, y: i64) -> Self
[src]
pub fn set_x(&mut self, v: i64)
[src]
pub fn set_y(&mut self, v: i64)
[src]
Trait Implementations
impl<'_, F> Add<&'_ Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i16, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector2<FPN<i16, F>>> for FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i32, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector2<FPN<i32, F>>> for FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i64, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector2<FPN<i64, F>>> for FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i8, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector2<FPN<i8, F>>> for FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<f32>> for &'_ Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<f32>> for Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<f64>> for &'_ Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<f64>> for Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i16>> for &'_ Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i16>> for Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i32>> for &'_ Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i32>> for Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i64>> for &'_ Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i64>> for Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i8>> for &'_ Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector2<i8>> for Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<F> Add<Vector2<FPN<i16, F>>> for FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i16, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector2<i16, F>) -> Self::Output
[src]
impl<F> Add<Vector2<FPN<i32, F>>> for FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i32, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector2<i32, F>) -> Self::Output
[src]
impl<F> Add<Vector2<FPN<i64, F>>> for FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i64, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector2<i64, F>) -> Self::Output
[src]
impl<F> Add<Vector2<FPN<i8, F>>> for FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i8, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector2<i8, F>) -> Self::Output
[src]
impl Add<Vector2<f32>> for Vector2<f32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self
[src]
impl<'_> Add<Vector2<f32>> for &'_ Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the +
operator.
fn add(self, v: Vector2<f32>) -> Self::Output
[src]
impl Add<Vector2<f64>> for Vector2<f64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self
[src]
impl<'_> Add<Vector2<f64>> for &'_ Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the +
operator.
fn add(self, v: Vector2<f64>) -> Self::Output
[src]
impl Add<Vector2<i16>> for Vector2<i16>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self
[src]
impl<'_> Add<Vector2<i16>> for &'_ Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i16>) -> Self::Output
[src]
impl<F> Add<Vector2<i16>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i16>) -> Self
[src]
impl Add<Vector2<i32>> for Vector2<i32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self
[src]
impl<'_> Add<Vector2<i32>> for &'_ Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i32>) -> Self::Output
[src]
impl<F> Add<Vector2<i32>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i32>) -> Self
[src]
impl Add<Vector2<i64>> for Vector2<i64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self
[src]
impl<'_> Add<Vector2<i64>> for &'_ Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i64>) -> Self::Output
[src]
impl<F> Add<Vector2<i64>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i64>) -> Self
[src]
impl Add<Vector2<i8>> for Vector2<i8>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self
[src]
impl<'_> Add<Vector2<i8>> for &'_ Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i8>) -> Self::Output
[src]
impl<F> Add<Vector2<i8>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector2<i8>) -> Self
[src]
impl<'_, F> AddAssign<&'_ Vector2<FPN<i16, F>>> for FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_, F> AddAssign<&'_ Vector2<FPN<i32, F>>> for FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_, F> AddAssign<&'_ Vector2<FPN<i64, F>>> for FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_, F> AddAssign<&'_ Vector2<FPN<i8, F>>> for FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector2<f32>> for Vector2<f32>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector2<f64>> for Vector2<f64>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector2<i16>> for Vector2<i16>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector2<i32>> for Vector2<i32>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector2<i64>> for Vector2<i64>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector2<i8>> for Vector2<i8>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<F> AddAssign<Vector2<FPN<i16, F>>> for FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector2<FPN<i32, F>>> for FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector2<FPN<i64, F>>> for FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector2<FPN<i8, F>>> for FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl AddAssign<Vector2<f32>> for Vector2<f32>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl AddAssign<Vector2<f64>> for Vector2<f64>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl AddAssign<Vector2<i16>> for Vector2<i16>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector2<i16>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector2<i16>)
[src]
impl AddAssign<Vector2<i32>> for Vector2<i32>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector2<i32>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector2<i32>)
[src]
impl AddAssign<Vector2<i64>> for Vector2<i64>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector2<i64>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector2<i64>)
[src]
impl AddAssign<Vector2<i8>> for Vector2<i8>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector2<i8>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector2<i8>)
[src]
impl<T> Clone for Vector2<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Cross<f32> for Vector2<f32>
[src]
impl Cross<f64> for Vector2<f64>
[src]
impl Cross<i16> for Vector2<i16>
[src]
impl Cross<i32> for Vector2<i32>
[src]
impl Cross<i64> for Vector2<i64>
[src]
impl Cross<i8> for Vector2<i8>
[src]
impl<T> Debug for Vector2<T> where
T: Debug,
[src]
T: Debug,
impl<T> Display for Vector2<T> where
T: Display,
[src]
T: Display,
impl Div<f32> for Vector2<f32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: f32) -> Self
[src]
impl<'_> Div<f32> for &'_ Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the /
operator.
fn div(self, v: f32) -> Self::Output
[src]
impl Div<f64> for Vector2<f64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: f64) -> Self
[src]
impl<'_> Div<f64> for &'_ Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the /
operator.
fn div(self, v: f64) -> Self::Output
[src]
impl Div<i16> for Vector2<i16>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i16) -> Self
[src]
impl<'_> Div<i16> for &'_ Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the /
operator.
fn div(self, v: i16) -> Self::Output
[src]
impl<F> Div<i16> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i16) -> Self
[src]
impl Div<i32> for Vector2<i32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i32) -> Self
[src]
impl<'_> Div<i32> for &'_ Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the /
operator.
fn div(self, v: i32) -> Self::Output
[src]
impl<F> Div<i32> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i32) -> Self
[src]
impl Div<i64> for Vector2<i64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i64) -> Self
[src]
impl<'_> Div<i64> for &'_ Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the /
operator.
fn div(self, v: i64) -> Self::Output
[src]
impl<F> Div<i64> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i64) -> Self
[src]
impl Div<i8> for Vector2<i8>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i8) -> Self
[src]
impl<'_> Div<i8> for &'_ Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the /
operator.
fn div(self, v: i8) -> Self::Output
[src]
impl<F> Div<i8> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i8) -> Self
[src]
impl<F> DivAssign<FPN<i16, F>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i16, F>)
[src]
impl<F> DivAssign<FPN<i32, F>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i32, F>)
[src]
impl<F> DivAssign<FPN<i64, F>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i64, F>)
[src]
impl<F> DivAssign<FPN<i8, F>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i8, F>)
[src]
impl DivAssign<f32> for Vector2<f32>
[src]
fn div_assign(&mut self, v: f32)
[src]
impl DivAssign<f64> for Vector2<f64>
[src]
fn div_assign(&mut self, v: f64)
[src]
impl DivAssign<i16> for Vector2<i16>
[src]
fn div_assign(&mut self, v: i16)
[src]
impl<F> DivAssign<i16> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i16)
[src]
impl DivAssign<i32> for Vector2<i32>
[src]
fn div_assign(&mut self, v: i32)
[src]
impl<F> DivAssign<i32> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i32)
[src]
impl DivAssign<i64> for Vector2<i64>
[src]
fn div_assign(&mut self, v: i64)
[src]
impl<F> DivAssign<i64> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i64)
[src]
impl DivAssign<i8> for Vector2<i8>
[src]
fn div_assign(&mut self, v: i8)
[src]
impl<F> DivAssign<i8> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i8)
[src]
impl Dot<f32> for Vector2<f32>
[src]
impl Dot<f64> for Vector2<f64>
[src]
impl Dot<i16> for Vector2<i16>
[src]
impl Dot<i32> for Vector2<i32>
[src]
impl Dot<i64> for Vector2<i64>
[src]
impl Dot<i8> for Vector2<i8>
[src]
impl<T> Eq for Vector2<T> where
T: Eq,
[src]
T: Eq,
impl Mul<f32> for Vector2<f32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: f32) -> Self
[src]
impl<'_> Mul<f32> for &'_ Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the *
operator.
fn mul(self, v: f32) -> Self::Output
[src]
impl Mul<f64> for Vector2<f64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: f64) -> Self
[src]
impl<'_> Mul<f64> for &'_ Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the *
operator.
fn mul(self, v: f64) -> Self::Output
[src]
impl Mul<i16> for Vector2<i16>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i16) -> Self
[src]
impl<'_> Mul<i16> for &'_ Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the *
operator.
fn mul(self, v: i16) -> Self::Output
[src]
impl<F> Mul<i16> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i16) -> Self
[src]
impl Mul<i32> for Vector2<i32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i32) -> Self
[src]
impl<'_> Mul<i32> for &'_ Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the *
operator.
fn mul(self, v: i32) -> Self::Output
[src]
impl<F> Mul<i32> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i32) -> Self
[src]
impl Mul<i64> for Vector2<i64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i64) -> Self
[src]
impl<'_> Mul<i64> for &'_ Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the *
operator.
fn mul(self, v: i64) -> Self::Output
[src]
impl<F> Mul<i64> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i64) -> Self
[src]
impl Mul<i8> for Vector2<i8>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i8) -> Self
[src]
impl<'_> Mul<i8> for &'_ Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the *
operator.
fn mul(self, v: i8) -> Self::Output
[src]
impl<F> Mul<i8> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i8) -> Self
[src]
impl<F> MulAssign<FPN<i16, F>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: FPN<i16, F>)
[src]
impl<F> MulAssign<FPN<i32, F>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: FPN<i32, F>)
[src]
impl<F> MulAssign<FPN<i64, F>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: FPN<i64, F>)
[src]
impl<F> MulAssign<FPN<i8, F>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: FPN<i8, F>)
[src]
impl MulAssign<f32> for Vector2<f32>
[src]
fn mul_assign(&mut self, v: f32)
[src]
impl MulAssign<f64> for Vector2<f64>
[src]
fn mul_assign(&mut self, v: f64)
[src]
impl MulAssign<i16> for Vector2<i16>
[src]
fn mul_assign(&mut self, v: i16)
[src]
impl<F> MulAssign<i16> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i16)
[src]
impl MulAssign<i32> for Vector2<i32>
[src]
fn mul_assign(&mut self, v: i32)
[src]
impl<F> MulAssign<i32> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i32)
[src]
impl MulAssign<i64> for Vector2<i64>
[src]
fn mul_assign(&mut self, v: i64)
[src]
impl<F> MulAssign<i64> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i64)
[src]
impl MulAssign<i8> for Vector2<i8>
[src]
fn mul_assign(&mut self, v: i8)
[src]
impl<F> MulAssign<i8> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i8)
[src]
impl Neg for Vector2<i8>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector2<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector2<i16>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector2<i32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector2<i64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector2<f32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<T> PartialEq<Vector2<T>> for Vector2<T> where
T: PartialEq,
[src]
T: PartialEq,
impl Polar<f32> for Vector2<f32>
[src]
impl Polar<f64> for Vector2<f64>
[src]
impl Polar<i16> for Vector2<i16>
[src]
impl Polar<i32> for Vector2<i32>
[src]
impl Polar<i64> for Vector2<i64>
[src]
impl Polar<i8> for Vector2<i8>
[src]
impl Rotate2<f32> for Vector2<f32>
[src]
impl Rotate2<f64> for Vector2<f64>
[src]
impl Rotate2<i16> for Vector2<i16>
[src]
impl Rotate2<i32> for Vector2<i32>
[src]
impl Rotate2<i64> for Vector2<i64>
[src]
impl Rotate2<i8> for Vector2<i8>
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i16, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i16, F>>> for FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i32, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i32, F>>> for FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i64, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i64, F>>> for FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i8, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector2<FPN<i8, F>>> for FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<f32>> for &'_ Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<f32>> for Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<f64>> for &'_ Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<f64>> for Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i16>> for &'_ Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i16>> for Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i32>> for &'_ Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i32>> for Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i64>> for &'_ Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i64>> for Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i8>> for &'_ Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector2<i8>> for Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<F> Sub<Vector2<FPN<i16, F>>> for FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i16, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector2<i16, F>) -> Self::Output
[src]
impl<F> Sub<Vector2<FPN<i32, F>>> for FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i32, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector2<i32, F>) -> Self::Output
[src]
impl<F> Sub<Vector2<FPN<i64, F>>> for FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i64, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector2<i64, F>) -> Self::Output
[src]
impl<F> Sub<Vector2<FPN<i8, F>>> for FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector2<i8, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector2<i8, F>) -> Self::Output
[src]
impl Sub<Vector2<f32>> for Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector2<f32>> for &'_ Vector2<f32>
[src]
type Output = Vector2<f32>
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<f32>) -> Self::Output
[src]
impl Sub<Vector2<f64>> for Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector2<f64>> for &'_ Vector2<f64>
[src]
type Output = Vector2<f64>
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<f64>) -> Self::Output
[src]
impl Sub<Vector2<i16>> for Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector2<i16>> for &'_ Vector2<i16>
[src]
type Output = Vector2<i16>
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i16>) -> Self::Output
[src]
impl<F> Sub<Vector2<i16>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i16>) -> Self
[src]
impl Sub<Vector2<i32>> for Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector2<i32>> for &'_ Vector2<i32>
[src]
type Output = Vector2<i32>
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i32>) -> Self::Output
[src]
impl<F> Sub<Vector2<i32>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i32>) -> Self
[src]
impl Sub<Vector2<i64>> for Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector2<i64>> for &'_ Vector2<i64>
[src]
type Output = Vector2<i64>
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i64>) -> Self::Output
[src]
impl<F> Sub<Vector2<i64>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i64>) -> Self
[src]
impl Sub<Vector2<i8>> for Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector2<i8>> for &'_ Vector2<i8>
[src]
type Output = Vector2<i8>
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i8>) -> Self::Output
[src]
impl<F> Sub<Vector2<i8>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector2<i8>) -> Self
[src]
impl<'_, F> SubAssign<&'_ Vector2<FPN<i16, F>>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_, F> SubAssign<&'_ Vector2<FPN<i32, F>>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_, F> SubAssign<&'_ Vector2<FPN<i64, F>>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_, F> SubAssign<&'_ Vector2<FPN<i8, F>>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector2<f32>> for Vector2<f32>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector2<f64>> for Vector2<f64>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector2<i16>> for Vector2<i16>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector2<i32>> for Vector2<i32>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector2<i64>> for Vector2<i64>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector2<i8>> for Vector2<i8>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<F> SubAssign<Vector2<FPN<i16, F>>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector2<FPN<i32, F>>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector2<FPN<i64, F>>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector2<FPN<i8, F>>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl SubAssign<Vector2<f32>> for Vector2<f32>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl SubAssign<Vector2<f64>> for Vector2<f64>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl SubAssign<Vector2<i16>> for Vector2<i16>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector2<i16>> for Vector2<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector2<i16>)
[src]
impl SubAssign<Vector2<i32>> for Vector2<i32>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector2<i32>> for Vector2<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector2<i32>)
[src]
impl SubAssign<Vector2<i64>> for Vector2<i64>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector2<i64>> for Vector2<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector2<i64>)
[src]
impl SubAssign<Vector2<i8>> for Vector2<i8>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector2<i8>> for Vector2<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector2<i8>)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Vector2<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Vector2<T> where
T: Send,
T: Send,
impl<T> Sync for Vector2<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Vector2<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Vector2<T> where
T: UnwindSafe,
T: UnwindSafe,
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> Same<T> for T
[src]
type Output = T
Should always be Self
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,