Struct nannou::prelude::Vector2 [−][src]
#[repr(C)]pub struct Vector2<S> { pub x: S, pub y: S, }
A 2-dimensional vector.
This type is marked as #[repr(C)]
.
Fields
x: S
The x component of the vector.
y: S
The y component of the vector.
Methods
impl<S> Vector2<S> where
S: BaseNum,
[src]
impl<S> Vector2<S> where
S: BaseNum,
pub fn unit_x() -> Vector2<S>
[src]
pub fn unit_x() -> Vector2<S>
A unit vector in the x
direction.
pub fn unit_y() -> Vector2<S>
[src]
pub fn unit_y() -> Vector2<S>
A unit vector in the y
direction.
pub fn perp_dot(self, other: Vector2<S>) -> S
[src]
pub fn perp_dot(self, other: Vector2<S>) -> S
The perpendicular dot product of the vector and other
.
pub fn extend(self, z: S) -> Vector3<S>
[src]
pub fn extend(self, z: S) -> Vector3<S>
Create a Vector3
, using the x
and y
values from this vector, and the
provided z
.
impl<S> Vector2<S>
[src]
impl<S> Vector2<S>
pub fn new(x: S, y: S) -> Vector2<S>
[src]
pub fn new(x: S, y: S) -> Vector2<S>
Construct a new vector, using the provided values.
pub fn map<U, F>(self, f: F) -> Vector2<U> where
F: FnMut(S) -> U,
[src]
pub fn map<U, F>(self, f: F) -> Vector2<U> where
F: FnMut(S) -> U,
Perform the given operation on each field in the vector, returning a new point constructed from the operations.
impl<S> Vector2<S> where
S: Copy + NumCast,
[src]
impl<S> Vector2<S> where
S: Copy + NumCast,
pub fn cast<T>(&self) -> Option<Vector2<T>> where
T: NumCast,
[src]
pub fn cast<T>(&self) -> Option<Vector2<T>> where
T: NumCast,
Component-wise casting to another type.
Trait Implementations
impl<S> IndexMut<usize> for Vector2<S>
[src]
impl<S> IndexMut<usize> for Vector2<S>
ⓘImportant traits for &'a mut Rfn index_mut(&'a mut self, i: usize) -> &'a mut S
[src]
fn index_mut(&'a mut self, i: usize) -> &'a mut S
Performs the mutable indexing (container[index]
) operation.
impl<S> IndexMut<RangeFull> for Vector2<S>
[src]
impl<S> IndexMut<RangeFull> for Vector2<S>
fn index_mut(&'a mut self, i: RangeFull) -> &'a mut [S]
[src]
fn index_mut(&'a mut self, i: RangeFull) -> &'a mut [S]
Performs the mutable indexing (container[index]
) operation.
impl<S> IndexMut<Range<usize>> for Vector2<S>
[src]
impl<S> IndexMut<Range<usize>> for Vector2<S>
fn index_mut(&'a mut self, i: Range<usize>) -> &'a mut [S]
[src]
fn index_mut(&'a mut self, i: Range<usize>) -> &'a mut [S]
Performs the mutable indexing (container[index]
) operation.
impl<S> IndexMut<RangeTo<usize>> for Vector2<S>
[src]
impl<S> IndexMut<RangeTo<usize>> for Vector2<S>
fn index_mut(&'a mut self, i: RangeTo<usize>) -> &'a mut [S]
[src]
fn index_mut(&'a mut self, i: RangeTo<usize>) -> &'a mut [S]
Performs the mutable indexing (container[index]
) operation.
impl<S> IndexMut<RangeFrom<usize>> for Vector2<S>
[src]
impl<S> IndexMut<RangeFrom<usize>> for Vector2<S>
fn index_mut(&'a mut self, i: RangeFrom<usize>) -> &'a mut [S]
[src]
fn index_mut(&'a mut self, i: RangeFrom<usize>) -> &'a mut [S]
Performs the mutable indexing (container[index]
) operation.
impl<S> ElementWise<Vector2<S>> for Vector2<S> where
S: BaseNum,
[src]
impl<S> ElementWise<Vector2<S>> for Vector2<S> where
S: BaseNum,
fn add_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]
fn add_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
fn sub_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]
fn sub_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
fn mul_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]
fn mul_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
fn div_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]
fn div_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
fn rem_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]
fn rem_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
fn add_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]
fn add_assign_element_wise(&mut self, rhs: Vector2<S>)
fn sub_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]
fn sub_assign_element_wise(&mut self, rhs: Vector2<S>)
fn mul_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]
fn mul_assign_element_wise(&mut self, rhs: Vector2<S>)
fn div_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]
fn div_assign_element_wise(&mut self, rhs: Vector2<S>)
fn rem_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]
fn rem_assign_element_wise(&mut self, rhs: Vector2<S>)
impl<S> ElementWise<S> for Vector2<S> where
S: BaseNum,
[src]
impl<S> ElementWise<S> for Vector2<S> where
S: BaseNum,
fn add_element_wise(self, rhs: S) -> Vector2<S>
[src]
fn add_element_wise(self, rhs: S) -> Vector2<S>
fn sub_element_wise(self, rhs: S) -> Vector2<S>
[src]
fn sub_element_wise(self, rhs: S) -> Vector2<S>
fn mul_element_wise(self, rhs: S) -> Vector2<S>
[src]
fn mul_element_wise(self, rhs: S) -> Vector2<S>
fn div_element_wise(self, rhs: S) -> Vector2<S>
[src]
fn div_element_wise(self, rhs: S) -> Vector2<S>
fn rem_element_wise(self, rhs: S) -> Vector2<S>
[src]
fn rem_element_wise(self, rhs: S) -> Vector2<S>
fn add_assign_element_wise(&mut self, rhs: S)
[src]
fn add_assign_element_wise(&mut self, rhs: S)
fn sub_assign_element_wise(&mut self, rhs: S)
[src]
fn sub_assign_element_wise(&mut self, rhs: S)
fn mul_assign_element_wise(&mut self, rhs: S)
[src]
fn mul_assign_element_wise(&mut self, rhs: S)
fn div_assign_element_wise(&mut self, rhs: S)
[src]
fn div_assign_element_wise(&mut self, rhs: S)
fn rem_assign_element_wise(&mut self, rhs: S)
[src]
fn rem_assign_element_wise(&mut self, rhs: S)
impl<S> Zero for Vector2<S> where
S: BaseNum,
[src]
impl<S> Zero for Vector2<S> where
S: BaseNum,
fn zero() -> Vector2<S>
[src]
fn zero() -> Vector2<S>
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
[src]
fn is_zero(&self) -> bool
Returns true
if self
is equal to the additive identity.
impl<S> Rand for Vector2<S> where
S: BaseFloat + Rand,
[src]
impl<S> Rand for Vector2<S> where
S: BaseFloat + Rand,
fn rand<R>(rng: &mut R) -> Vector2<S> where
R: Rng,
[src]
fn rand<R>(rng: &mut R) -> Vector2<S> where
R: Rng,
Generates a random instance of this type using the specified source of randomness. Read more
impl<S> Hash for Vector2<S> where
S: Hash,
[src]
impl<S> Hash for Vector2<S> where
S: Hash,
fn hash<__HS>(&self, state: &mut __HS) where
__HS: Hasher,
[src]
fn hash<__HS>(&self, state: &mut __HS) where
__HS: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<S> InnerSpace for Vector2<S> where
S: BaseFloat,
[src]
impl<S> InnerSpace for Vector2<S> where
S: BaseFloat,
fn dot(self, other: Vector2<S>) -> S
[src]
fn dot(self, other: Vector2<S>) -> S
Vector dot (or inner) product.
fn angle(self, other: Vector2<S>) -> Rad<S>
[src]
fn angle(self, other: Vector2<S>) -> Rad<S>
Returns the angle between two vectors in radians.
fn is_perpendicular(self, other: Self) -> bool
[src]
fn is_perpendicular(self, other: Self) -> bool
Returns true
if the vector is perpendicular (at right angles) to the other vector. Read more
fn magnitude2(self) -> Self::Scalar
[src]
fn magnitude2(self) -> Self::Scalar
Returns the squared magnitude. Read more
fn magnitude(self) -> Self::Scalar
[src]
fn magnitude(self) -> Self::Scalar
The distance from the tail to the tip of the vector.
fn normalize(self) -> Self
[src]
fn normalize(self) -> Self
Returns a vector with the same direction, but with a magnitude of 1
.
fn normalize_to(self, magnitude: Self::Scalar) -> Self
[src]
fn normalize_to(self, magnitude: Self::Scalar) -> Self
Returns a vector with the same direction and a given magnitude.
fn lerp(self, other: Self, amount: Self::Scalar) -> Self
[src]
fn lerp(self, other: Self, amount: Self::Scalar) -> Self
Returns the result of linearly interpolating the magnitude of the vector towards the magnitude of other
by the specified amount. Read more
fn project_on(self, other: Self) -> Self
[src]
fn project_on(self, other: Self) -> Self
Returns the vector projection of the current inner space projected onto the supplied argument. Read more
impl<'a, S> Sub<&'a Vector2<S>> for Vector2<S> where
S: BaseNum,
[src]
impl<'a, S> Sub<&'a Vector2<S>> for Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Vector2<S>) -> Vector2<S>
[src]
fn sub(self, other: &'a Vector2<S>) -> Vector2<S>
Performs the -
operation.
impl<'a, 'b, S> Sub<&'a Vector2<S>> for &'b Vector2<S> where
S: BaseNum,
[src]
impl<'a, 'b, S> Sub<&'a Vector2<S>> for &'b Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Vector2<S>) -> Vector2<S>
[src]
fn sub(self, other: &'a Vector2<S>) -> Vector2<S>
Performs the -
operation.
impl<'a, S> Sub<&'a Vector2<S>> for Point2<S> where
S: BaseNum,
[src]
impl<'a, S> Sub<&'a Vector2<S>> for Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Vector2<S>) -> Point2<S>
[src]
fn sub(self, other: &'a Vector2<S>) -> Point2<S>
Performs the -
operation.
impl<S> Sub<Vector2<S>> for Point2<S> where
S: BaseNum,
[src]
impl<S> Sub<Vector2<S>> for Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the -
operator.
fn sub(self, other: Vector2<S>) -> Point2<S>
[src]
fn sub(self, other: Vector2<S>) -> Point2<S>
Performs the -
operation.
impl<S> Sub<Vector2<S>> for Vector2<S> where
S: BaseNum,
[src]
impl<S> Sub<Vector2<S>> for Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the -
operator.
fn sub(self, other: Vector2<S>) -> Vector2<S>
[src]
fn sub(self, other: Vector2<S>) -> Vector2<S>
Performs the -
operation.
impl<'a, S> Sub<Vector2<S>> for &'a Vector2<S> where
S: BaseNum,
[src]
impl<'a, S> Sub<Vector2<S>> for &'a Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the -
operator.
fn sub(self, other: Vector2<S>) -> Vector2<S>
[src]
fn sub(self, other: Vector2<S>) -> Vector2<S>
Performs the -
operation.
impl<'a, 'b, S> Sub<&'a Vector2<S>> for &'b Point2<S> where
S: BaseNum,
[src]
impl<'a, 'b, S> Sub<&'a Vector2<S>> for &'b Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Vector2<S>) -> Point2<S>
[src]
fn sub(self, other: &'a Vector2<S>) -> Point2<S>
Performs the -
operation.
impl<'a, S> Sub<Vector2<S>> for &'a Point2<S> where
S: BaseNum,
[src]
impl<'a, S> Sub<Vector2<S>> for &'a Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the -
operator.
fn sub(self, other: Vector2<S>) -> Point2<S>
[src]
fn sub(self, other: Vector2<S>) -> Point2<S>
Performs the -
operation.
impl<S> VectorSpace for Vector2<S> where
S: BaseNum,
[src]
impl<S> VectorSpace for Vector2<S> where
S: BaseNum,
type Scalar = S
The associated scalar.
impl<S> Clone for Vector2<S> where
S: Clone,
[src]
impl<S> Clone for Vector2<S> where
S: Clone,
fn clone(&self) -> Vector2<S>
[src]
fn clone(&self) -> Vector2<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<S> MulAssign<S> for Vector2<S> where
S: BaseNum + MulAssign<S>,
[src]
impl<S> MulAssign<S> for Vector2<S> where
S: BaseNum + MulAssign<S>,
fn mul_assign(&mut self, scalar: S)
[src]
fn mul_assign(&mut self, scalar: S)
Performs the *=
operation.
impl<S> Debug for Vector2<S> where
S: Debug,
[src]
impl<S> Debug for Vector2<S> where
S: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<S> Sum<Vector2<S>> for Vector2<S> where
S: BaseNum,
[src]
impl<S> Sum<Vector2<S>> for Vector2<S> where
S: BaseNum,
fn sum<I>(iter: I) -> Vector2<S> where
I: Iterator<Item = Vector2<S>>,
[src]
fn sum<I>(iter: I) -> Vector2<S> where
I: Iterator<Item = Vector2<S>>,
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl<'a, S> Sum<&'a Vector2<S>> for Vector2<S> where
S: 'a + BaseNum,
[src]
impl<'a, S> Sum<&'a Vector2<S>> for Vector2<S> where
S: 'a + BaseNum,
fn sum<I>(iter: I) -> Vector2<S> where
I: Iterator<Item = &'a Vector2<S>>,
[src]
fn sum<I>(iter: I) -> Vector2<S> where
I: Iterator<Item = &'a Vector2<S>>,
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl Mul<Vector2<i32>> for i32
[src]
impl Mul<Vector2<i32>> for i32
type Output = Vector2<i32>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<i32>) -> Vector2<i32>
[src]
fn mul(self, other: Vector2<i32>) -> Vector2<i32>
Performs the *
operation.
impl Mul<Vector2<f32>> for f32
[src]
impl Mul<Vector2<f32>> for f32
type Output = Vector2<f32>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<f32>) -> Vector2<f32>
[src]
fn mul(self, other: Vector2<f32>) -> Vector2<f32>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<i32>> for i32
[src]
impl<'a> Mul<&'a Vector2<i32>> for i32
type Output = Vector2<i32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<i32>) -> Vector2<i32>
[src]
fn mul(self, other: &'a Vector2<i32>) -> Vector2<i32>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<i64>> for i64
[src]
impl<'a> Mul<&'a Vector2<i64>> for i64
type Output = Vector2<i64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<i64>) -> Vector2<i64>
[src]
fn mul(self, other: &'a Vector2<i64>) -> Vector2<i64>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<usize>> for usize
[src]
impl<'a> Mul<&'a Vector2<usize>> for usize
type Output = Vector2<usize>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<usize>) -> Vector2<usize>
[src]
fn mul(self, other: &'a Vector2<usize>) -> Vector2<usize>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<i16>> for i16
[src]
impl<'a> Mul<&'a Vector2<i16>> for i16
type Output = Vector2<i16>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<i16>) -> Vector2<i16>
[src]
fn mul(self, other: &'a Vector2<i16>) -> Vector2<i16>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<f32>> for f32
[src]
impl<'a> Mul<&'a Vector2<f32>> for f32
type Output = Vector2<f32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<f32>) -> Vector2<f32>
[src]
fn mul(self, other: &'a Vector2<f32>) -> Vector2<f32>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<isize>> for isize
[src]
impl<'a> Mul<&'a Vector2<isize>> for isize
type Output = Vector2<isize>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<isize>) -> Vector2<isize>
[src]
fn mul(self, other: &'a Vector2<isize>) -> Vector2<isize>
Performs the *
operation.
impl<'a, S> Mul<S> for &'a Vector2<S> where
S: BaseNum,
[src]
impl<'a, S> Mul<S> for &'a Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the *
operator.
fn mul(self, other: S) -> Vector2<S>
[src]
fn mul(self, other: S) -> Vector2<S>
Performs the *
operation.
impl Mul<Vector2<f64>> for f64
[src]
impl Mul<Vector2<f64>> for f64
type Output = Vector2<f64>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<f64>) -> Vector2<f64>
[src]
fn mul(self, other: Vector2<f64>) -> Vector2<f64>
Performs the *
operation.
impl Mul<Vector2<u8>> for u8
[src]
impl Mul<Vector2<u8>> for u8
type Output = Vector2<u8>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<u8>) -> Vector2<u8>
[src]
fn mul(self, other: Vector2<u8>) -> Vector2<u8>
Performs the *
operation.
impl Mul<Vector2<isize>> for isize
[src]
impl Mul<Vector2<isize>> for isize
type Output = Vector2<isize>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<isize>) -> Vector2<isize>
[src]
fn mul(self, other: Vector2<isize>) -> Vector2<isize>
Performs the *
operation.
impl Mul<Vector2<i16>> for i16
[src]
impl Mul<Vector2<i16>> for i16
type Output = Vector2<i16>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<i16>) -> Vector2<i16>
[src]
fn mul(self, other: Vector2<i16>) -> Vector2<i16>
Performs the *
operation.
impl Mul<Vector2<i64>> for i64
[src]
impl Mul<Vector2<i64>> for i64
type Output = Vector2<i64>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<i64>) -> Vector2<i64>
[src]
fn mul(self, other: Vector2<i64>) -> Vector2<i64>
Performs the *
operation.
impl<S> Mul<S> for Vector2<S> where
S: BaseNum,
[src]
impl<S> Mul<S> for Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the *
operator.
fn mul(self, other: S) -> Vector2<S>
[src]
fn mul(self, other: S) -> Vector2<S>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<u64>> for u64
[src]
impl<'a> Mul<&'a Vector2<u64>> for u64
type Output = Vector2<u64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<u64>) -> Vector2<u64>
[src]
fn mul(self, other: &'a Vector2<u64>) -> Vector2<u64>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<u32>> for u32
[src]
impl<'a> Mul<&'a Vector2<u32>> for u32
type Output = Vector2<u32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<u32>) -> Vector2<u32>
[src]
fn mul(self, other: &'a Vector2<u32>) -> Vector2<u32>
Performs the *
operation.
impl<'a, S> Mul<Vector2<S>> for &'a Matrix2<S> where
S: BaseFloat,
[src]
impl<'a, S> Mul<Vector2<S>> for &'a Matrix2<S> where
S: BaseFloat,
type Output = Vector2<S>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<S>) -> Vector2<S>
[src]
fn mul(self, other: Vector2<S>) -> Vector2<S>
Performs the *
operation.
impl Mul<Vector2<u32>> for u32
[src]
impl Mul<Vector2<u32>> for u32
type Output = Vector2<u32>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<u32>) -> Vector2<u32>
[src]
fn mul(self, other: Vector2<u32>) -> Vector2<u32>
Performs the *
operation.
impl Mul<Vector2<u16>> for u16
[src]
impl Mul<Vector2<u16>> for u16
type Output = Vector2<u16>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<u16>) -> Vector2<u16>
[src]
fn mul(self, other: Vector2<u16>) -> Vector2<u16>
Performs the *
operation.
impl Mul<Vector2<usize>> for usize
[src]
impl Mul<Vector2<usize>> for usize
type Output = Vector2<usize>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<usize>) -> Vector2<usize>
[src]
fn mul(self, other: Vector2<usize>) -> Vector2<usize>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<i8>> for i8
[src]
impl<'a> Mul<&'a Vector2<i8>> for i8
type Output = Vector2<i8>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<i8>) -> Vector2<i8>
[src]
fn mul(self, other: &'a Vector2<i8>) -> Vector2<i8>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<u8>> for u8
[src]
impl<'a> Mul<&'a Vector2<u8>> for u8
type Output = Vector2<u8>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<u8>) -> Vector2<u8>
[src]
fn mul(self, other: &'a Vector2<u8>) -> Vector2<u8>
Performs the *
operation.
impl Mul<Vector2<u64>> for u64
[src]
impl Mul<Vector2<u64>> for u64
type Output = Vector2<u64>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<u64>) -> Vector2<u64>
[src]
fn mul(self, other: Vector2<u64>) -> Vector2<u64>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<u16>> for u16
[src]
impl<'a> Mul<&'a Vector2<u16>> for u16
type Output = Vector2<u16>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<u16>) -> Vector2<u16>
[src]
fn mul(self, other: &'a Vector2<u16>) -> Vector2<u16>
Performs the *
operation.
impl<'a> Mul<&'a Vector2<f64>> for f64
[src]
impl<'a> Mul<&'a Vector2<f64>> for f64
type Output = Vector2<f64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<f64>) -> Vector2<f64>
[src]
fn mul(self, other: &'a Vector2<f64>) -> Vector2<f64>
Performs the *
operation.
impl<'a, 'b, S> Mul<&'a Vector2<S>> for &'b Matrix2<S> where
S: BaseFloat,
[src]
impl<'a, 'b, S> Mul<&'a Vector2<S>> for &'b Matrix2<S> where
S: BaseFloat,
type Output = Vector2<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<S>) -> Vector2<S>
[src]
fn mul(self, other: &'a Vector2<S>) -> Vector2<S>
Performs the *
operation.
impl<S> Mul<Vector2<S>> for Matrix2<S> where
S: BaseFloat,
[src]
impl<S> Mul<Vector2<S>> for Matrix2<S> where
S: BaseFloat,
type Output = Vector2<S>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<S>) -> Vector2<S>
[src]
fn mul(self, other: Vector2<S>) -> Vector2<S>
Performs the *
operation.
impl Mul<Vector2<i8>> for i8
[src]
impl Mul<Vector2<i8>> for i8
type Output = Vector2<i8>
The resulting type after applying the *
operator.
fn mul(self, other: Vector2<i8>) -> Vector2<i8>
[src]
fn mul(self, other: Vector2<i8>) -> Vector2<i8>
Performs the *
operation.
impl<'a, S> Mul<&'a Vector2<S>> for Matrix2<S> where
S: BaseFloat,
[src]
impl<'a, S> Mul<&'a Vector2<S>> for Matrix2<S> where
S: BaseFloat,
type Output = Vector2<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector2<S>) -> Vector2<S>
[src]
fn mul(self, other: &'a Vector2<S>) -> Vector2<S>
Performs the *
operation.
impl<S> RemAssign<S> for Vector2<S> where
S: BaseNum + RemAssign<S>,
[src]
impl<S> RemAssign<S> for Vector2<S> where
S: BaseNum + RemAssign<S>,
fn rem_assign(&mut self, scalar: S)
[src]
fn rem_assign(&mut self, scalar: S)
Performs the %=
operation.
impl<S> Neg for Vector2<S> where
S: Neg<Output = S>,
[src]
impl<S> Neg for Vector2<S> where
S: Neg<Output = S>,
type Output = Vector2<S>
The resulting type after applying the -
operator.
fn neg(self) -> Vector2<S>
[src]
fn neg(self) -> Vector2<S>
Performs the unary -
operation.
impl<S> AsRef<(S, S)> for Vector2<S>
[src]
impl<S> AsRef<(S, S)> for Vector2<S>
impl<S> AsRef<[S; 2]> for Vector2<S>
[src]
impl<S> AsRef<[S; 2]> for Vector2<S>
impl<'de, S> Deserialize<'de> for Vector2<S> where
S: Deserialize<'de>,
[src]
impl<'de, S> Deserialize<'de> for Vector2<S> where
S: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Vector2<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Vector2<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'a, S> From<&'a [S; 2]> for &'a Vector2<S>
[src]
impl<'a, S> From<&'a [S; 2]> for &'a Vector2<S>
impl<'a, S> From<&'a mut (S, S)> for &'a mut Vector2<S>
[src]
impl<'a, S> From<&'a mut (S, S)> for &'a mut Vector2<S>
impl<S> From<(S, S)> for Vector2<S>
[src]
impl<S> From<(S, S)> for Vector2<S>
impl<'a, S> From<&'a mut [S; 2]> for &'a mut Vector2<S>
[src]
impl<'a, S> From<&'a mut [S; 2]> for &'a mut Vector2<S>
impl<S> From<[S; 2]> for Vector2<S> where
S: Clone,
[src]
impl<S> From<[S; 2]> for Vector2<S> where
S: Clone,
impl<'a, S> From<&'a (S, S)> for &'a Vector2<S>
[src]
impl<'a, S> From<&'a (S, S)> for &'a Vector2<S>
impl<S> AddAssign<Vector2<S>> for Point2<S> where
S: BaseNum + AddAssign<S>,
[src]
impl<S> AddAssign<Vector2<S>> for Point2<S> where
S: BaseNum + AddAssign<S>,
fn add_assign(&mut self, vector: Vector2<S>)
[src]
fn add_assign(&mut self, vector: Vector2<S>)
Performs the +=
operation.
impl<S> AddAssign<Vector2<S>> for Vector2<S> where
S: BaseNum + AddAssign<S>,
[src]
impl<S> AddAssign<Vector2<S>> for Vector2<S> where
S: BaseNum + AddAssign<S>,
fn add_assign(&mut self, other: Vector2<S>)
[src]
fn add_assign(&mut self, other: Vector2<S>)
Performs the +=
operation.
impl<S> Array for Vector2<S> where
S: Copy,
[src]
impl<S> Array for Vector2<S> where
S: Copy,
type Element = S
fn len() -> usize
[src]
fn len() -> usize
Get the number of elements in the array type Read more
fn from_value(scalar: S) -> Vector2<S>
[src]
fn from_value(scalar: S) -> Vector2<S>
Construct a vector from a single value, replicating it. Read more
fn sum(self) -> S where
S: Add<S, Output = S>,
[src]
fn sum(self) -> S where
S: Add<S, Output = S>,
The sum of the elements of the array.
fn product(self) -> S where
S: Mul<S, Output = S>,
[src]
fn product(self) -> S where
S: Mul<S, Output = S>,
The product of the elements of the array.
fn as_ptr(&self) -> *const Self::Element
[src]
fn as_ptr(&self) -> *const Self::Element
Get the pointer to the first element of the array.
fn as_mut_ptr(&mut self) -> *mut Self::Element
[src]
fn as_mut_ptr(&mut self) -> *mut Self::Element
Get a mutable pointer to the first element of the array.
fn swap_elements(&mut self, i: usize, j: usize)
[src]
fn swap_elements(&mut self, i: usize, j: usize)
Swap the elements at indices i
and j
in-place.
impl<S> ApproxEq for Vector2<S> where
S: BaseFloat,
[src]
impl<S> ApproxEq for Vector2<S> where
S: BaseFloat,
type Epsilon = <S as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> <S as ApproxEq>::Epsilon
[src]
fn default_epsilon() -> <S as ApproxEq>::Epsilon
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> <S as ApproxEq>::Epsilon
[src]
fn default_max_relative() -> <S as ApproxEq>::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
[src]
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(
&self,
other: &Vector2<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_relative: <S as ApproxEq>::Epsilon
) -> bool
[src]
fn relative_eq(
&self,
other: &Vector2<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_relative: <S as ApproxEq>::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(
&self,
other: &Vector2<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
[src]
fn ulps_eq(
&self,
other: &Vector2<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
A test for equality that uses units in the last place (ULP) if the values are far apart.
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.
impl<S> Into<(S, S)> for Vector2<S>
[src]
impl<S> Into<(S, S)> for Vector2<S>
impl<S> Into<[S; 2]> for Vector2<S>
[src]
impl<S> Into<[S; 2]> for Vector2<S>
impl<S> MetricSpace for Vector2<S> where
S: BaseFloat,
[src]
impl<S> MetricSpace for Vector2<S> where
S: BaseFloat,
type Metric = S
The metric to be returned by the distance
function.
fn distance2(self, other: Vector2<S>) -> S
[src]
fn distance2(self, other: Vector2<S>) -> S
Returns the squared distance. Read more
fn distance(self, other: Self) -> Self::Metric
[src]
fn distance(self, other: Self) -> Self::Metric
The distance between two values.
impl<S> Index<RangeFull> for Vector2<S>
[src]
impl<S> Index<RangeFull> for Vector2<S>
type Output = [S]
The returned type after indexing.
fn index(&'a self, i: RangeFull) -> &'a [S]
[src]
fn index(&'a self, i: RangeFull) -> &'a [S]
Performs the indexing (container[index]
) operation.
impl<S> Index<RangeTo<usize>> for Vector2<S>
[src]
impl<S> Index<RangeTo<usize>> for Vector2<S>
type Output = [S]
The returned type after indexing.
fn index(&'a self, i: RangeTo<usize>) -> &'a [S]
[src]
fn index(&'a self, i: RangeTo<usize>) -> &'a [S]
Performs the indexing (container[index]
) operation.
impl<S> Index<usize> for Vector2<S>
[src]
impl<S> Index<usize> for Vector2<S>
type Output = S
The returned type after indexing.
ⓘImportant traits for &'a mut Rfn index(&'a self, i: usize) -> &'a S
[src]
fn index(&'a self, i: usize) -> &'a S
Performs the indexing (container[index]
) operation.
impl<S> Index<Range<usize>> for Vector2<S>
[src]
impl<S> Index<Range<usize>> for Vector2<S>
type Output = [S]
The returned type after indexing.
fn index(&'a self, i: Range<usize>) -> &'a [S]
[src]
fn index(&'a self, i: Range<usize>) -> &'a [S]
Performs the indexing (container[index]
) operation.
impl<S> Index<RangeFrom<usize>> for Vector2<S>
[src]
impl<S> Index<RangeFrom<usize>> for Vector2<S>
type Output = [S]
The returned type after indexing.
fn index(&'a self, i: RangeFrom<usize>) -> &'a [S]
[src]
fn index(&'a self, i: RangeFrom<usize>) -> &'a [S]
Performs the indexing (container[index]
) operation.
impl<'a, S> Add<&'a Vector2<S>> for Point2<S> where
S: BaseNum,
[src]
impl<'a, S> Add<&'a Vector2<S>> for Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Vector2<S>) -> Point2<S>
[src]
fn add(self, other: &'a Vector2<S>) -> Point2<S>
Performs the +
operation.
impl<'a, S> Add<Vector2<S>> for &'a Point2<S> where
S: BaseNum,
[src]
impl<'a, S> Add<Vector2<S>> for &'a Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the +
operator.
fn add(self, other: Vector2<S>) -> Point2<S>
[src]
fn add(self, other: Vector2<S>) -> Point2<S>
Performs the +
operation.
impl<S> Add<Vector2<S>> for Vector2<S> where
S: BaseNum,
[src]
impl<S> Add<Vector2<S>> for Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the +
operator.
fn add(self, other: Vector2<S>) -> Vector2<S>
[src]
fn add(self, other: Vector2<S>) -> Vector2<S>
Performs the +
operation.
impl<'a, 'b, S> Add<&'a Vector2<S>> for &'b Point2<S> where
S: BaseNum,
[src]
impl<'a, 'b, S> Add<&'a Vector2<S>> for &'b Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Vector2<S>) -> Point2<S>
[src]
fn add(self, other: &'a Vector2<S>) -> Point2<S>
Performs the +
operation.
impl<S> Add<Vector2<S>> for Point2<S> where
S: BaseNum,
[src]
impl<S> Add<Vector2<S>> for Point2<S> where
S: BaseNum,
type Output = Point2<S>
The resulting type after applying the +
operator.
fn add(self, other: Vector2<S>) -> Point2<S>
[src]
fn add(self, other: Vector2<S>) -> Point2<S>
Performs the +
operation.
impl<'a, S> Add<Vector2<S>> for &'a Vector2<S> where
S: BaseNum,
[src]
impl<'a, S> Add<Vector2<S>> for &'a Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the +
operator.
fn add(self, other: Vector2<S>) -> Vector2<S>
[src]
fn add(self, other: Vector2<S>) -> Vector2<S>
Performs the +
operation.
impl<'a, S> Add<&'a Vector2<S>> for Vector2<S> where
S: BaseNum,
[src]
impl<'a, S> Add<&'a Vector2<S>> for Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Vector2<S>) -> Vector2<S>
[src]
fn add(self, other: &'a Vector2<S>) -> Vector2<S>
Performs the +
operation.
impl<'a, 'b, S> Add<&'a Vector2<S>> for &'b Vector2<S> where
S: BaseNum,
[src]
impl<'a, 'b, S> Add<&'a Vector2<S>> for &'b Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Vector2<S>) -> Vector2<S>
[src]
fn add(self, other: &'a Vector2<S>) -> Vector2<S>
Performs the +
operation.
impl<S> Bounded for Vector2<S> where
S: Bounded,
[src]
impl<S> Bounded for Vector2<S> where
S: Bounded,
fn min_value() -> Vector2<S>
[src]
fn min_value() -> Vector2<S>
returns the smallest finite number this type can represent
fn max_value() -> Vector2<S>
[src]
fn max_value() -> Vector2<S>
returns the largest finite number this type can represent
impl<S> Serialize for Vector2<S> where
S: Serialize,
[src]
impl<S> Serialize for Vector2<S> where
S: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Rem<Vector2<u64>> for u64
[src]
impl Rem<Vector2<u64>> for u64
type Output = Vector2<u64>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<u64>) -> Vector2<u64>
[src]
fn rem(self, other: Vector2<u64>) -> Vector2<u64>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<u32>> for u32
[src]
impl<'a> Rem<&'a Vector2<u32>> for u32
type Output = Vector2<u32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<u32>) -> Vector2<u32>
[src]
fn rem(self, other: &'a Vector2<u32>) -> Vector2<u32>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<u8>> for u8
[src]
impl<'a> Rem<&'a Vector2<u8>> for u8
type Output = Vector2<u8>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<u8>) -> Vector2<u8>
[src]
fn rem(self, other: &'a Vector2<u8>) -> Vector2<u8>
Performs the %
operation.
impl Rem<Vector2<f32>> for f32
[src]
impl Rem<Vector2<f32>> for f32
type Output = Vector2<f32>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<f32>) -> Vector2<f32>
[src]
fn rem(self, other: Vector2<f32>) -> Vector2<f32>
Performs the %
operation.
impl<S> Rem<S> for Vector2<S> where
S: BaseNum,
[src]
impl<S> Rem<S> for Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the %
operator.
fn rem(self, other: S) -> Vector2<S>
[src]
fn rem(self, other: S) -> Vector2<S>
Performs the %
operation.
impl Rem<Vector2<u8>> for u8
[src]
impl Rem<Vector2<u8>> for u8
type Output = Vector2<u8>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<u8>) -> Vector2<u8>
[src]
fn rem(self, other: Vector2<u8>) -> Vector2<u8>
Performs the %
operation.
impl Rem<Vector2<u16>> for u16
[src]
impl Rem<Vector2<u16>> for u16
type Output = Vector2<u16>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<u16>) -> Vector2<u16>
[src]
fn rem(self, other: Vector2<u16>) -> Vector2<u16>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<usize>> for usize
[src]
impl<'a> Rem<&'a Vector2<usize>> for usize
type Output = Vector2<usize>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<usize>) -> Vector2<usize>
[src]
fn rem(self, other: &'a Vector2<usize>) -> Vector2<usize>
Performs the %
operation.
impl Rem<Vector2<i8>> for i8
[src]
impl Rem<Vector2<i8>> for i8
type Output = Vector2<i8>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<i8>) -> Vector2<i8>
[src]
fn rem(self, other: Vector2<i8>) -> Vector2<i8>
Performs the %
operation.
impl Rem<Vector2<i32>> for i32
[src]
impl Rem<Vector2<i32>> for i32
type Output = Vector2<i32>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<i32>) -> Vector2<i32>
[src]
fn rem(self, other: Vector2<i32>) -> Vector2<i32>
Performs the %
operation.
impl Rem<Vector2<f64>> for f64
[src]
impl Rem<Vector2<f64>> for f64
type Output = Vector2<f64>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<f64>) -> Vector2<f64>
[src]
fn rem(self, other: Vector2<f64>) -> Vector2<f64>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<i32>> for i32
[src]
impl<'a> Rem<&'a Vector2<i32>> for i32
type Output = Vector2<i32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<i32>) -> Vector2<i32>
[src]
fn rem(self, other: &'a Vector2<i32>) -> Vector2<i32>
Performs the %
operation.
impl<'a, S> Rem<S> for &'a Vector2<S> where
S: BaseNum,
[src]
impl<'a, S> Rem<S> for &'a Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the %
operator.
fn rem(self, other: S) -> Vector2<S>
[src]
fn rem(self, other: S) -> Vector2<S>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<u64>> for u64
[src]
impl<'a> Rem<&'a Vector2<u64>> for u64
type Output = Vector2<u64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<u64>) -> Vector2<u64>
[src]
fn rem(self, other: &'a Vector2<u64>) -> Vector2<u64>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<f32>> for f32
[src]
impl<'a> Rem<&'a Vector2<f32>> for f32
type Output = Vector2<f32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<f32>) -> Vector2<f32>
[src]
fn rem(self, other: &'a Vector2<f32>) -> Vector2<f32>
Performs the %
operation.
impl Rem<Vector2<usize>> for usize
[src]
impl Rem<Vector2<usize>> for usize
type Output = Vector2<usize>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<usize>) -> Vector2<usize>
[src]
fn rem(self, other: Vector2<usize>) -> Vector2<usize>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<isize>> for isize
[src]
impl<'a> Rem<&'a Vector2<isize>> for isize
type Output = Vector2<isize>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<isize>) -> Vector2<isize>
[src]
fn rem(self, other: &'a Vector2<isize>) -> Vector2<isize>
Performs the %
operation.
impl Rem<Vector2<i16>> for i16
[src]
impl Rem<Vector2<i16>> for i16
type Output = Vector2<i16>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<i16>) -> Vector2<i16>
[src]
fn rem(self, other: Vector2<i16>) -> Vector2<i16>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<i8>> for i8
[src]
impl<'a> Rem<&'a Vector2<i8>> for i8
type Output = Vector2<i8>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<i8>) -> Vector2<i8>
[src]
fn rem(self, other: &'a Vector2<i8>) -> Vector2<i8>
Performs the %
operation.
impl Rem<Vector2<i64>> for i64
[src]
impl Rem<Vector2<i64>> for i64
type Output = Vector2<i64>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<i64>) -> Vector2<i64>
[src]
fn rem(self, other: Vector2<i64>) -> Vector2<i64>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<i16>> for i16
[src]
impl<'a> Rem<&'a Vector2<i16>> for i16
type Output = Vector2<i16>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<i16>) -> Vector2<i16>
[src]
fn rem(self, other: &'a Vector2<i16>) -> Vector2<i16>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<i64>> for i64
[src]
impl<'a> Rem<&'a Vector2<i64>> for i64
type Output = Vector2<i64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<i64>) -> Vector2<i64>
[src]
fn rem(self, other: &'a Vector2<i64>) -> Vector2<i64>
Performs the %
operation.
impl Rem<Vector2<isize>> for isize
[src]
impl Rem<Vector2<isize>> for isize
type Output = Vector2<isize>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<isize>) -> Vector2<isize>
[src]
fn rem(self, other: Vector2<isize>) -> Vector2<isize>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<u16>> for u16
[src]
impl<'a> Rem<&'a Vector2<u16>> for u16
type Output = Vector2<u16>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<u16>) -> Vector2<u16>
[src]
fn rem(self, other: &'a Vector2<u16>) -> Vector2<u16>
Performs the %
operation.
impl Rem<Vector2<u32>> for u32
[src]
impl Rem<Vector2<u32>> for u32
type Output = Vector2<u32>
The resulting type after applying the %
operator.
fn rem(self, other: Vector2<u32>) -> Vector2<u32>
[src]
fn rem(self, other: Vector2<u32>) -> Vector2<u32>
Performs the %
operation.
impl<'a> Rem<&'a Vector2<f64>> for f64
[src]
impl<'a> Rem<&'a Vector2<f64>> for f64
type Output = Vector2<f64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector2<f64>) -> Vector2<f64>
[src]
fn rem(self, other: &'a Vector2<f64>) -> Vector2<f64>
Performs the %
operation.
impl<S> SubAssign<Vector2<S>> for Vector2<S> where
S: BaseNum + SubAssign<S>,
[src]
impl<S> SubAssign<Vector2<S>> for Vector2<S> where
S: BaseNum + SubAssign<S>,
fn sub_assign(&mut self, other: Vector2<S>)
[src]
fn sub_assign(&mut self, other: Vector2<S>)
Performs the -=
operation.
impl<S> SubAssign<Vector2<S>> for Point2<S> where
S: BaseNum + SubAssign<S>,
[src]
impl<S> SubAssign<Vector2<S>> for Point2<S> where
S: BaseNum + SubAssign<S>,
fn sub_assign(&mut self, vector: Vector2<S>)
[src]
fn sub_assign(&mut self, vector: Vector2<S>)
Performs the -=
operation.
impl<S> AsMut<(S, S)> for Vector2<S>
[src]
impl<S> AsMut<(S, S)> for Vector2<S>
impl<S> AsMut<[S; 2]> for Vector2<S>
[src]
impl<S> AsMut<[S; 2]> for Vector2<S>
impl<S> Copy for Vector2<S> where
S: Copy,
[src]
impl<S> Copy for Vector2<S> where
S: Copy,
impl<S> DivAssign<S> for Vector2<S> where
S: BaseNum + DivAssign<S>,
[src]
impl<S> DivAssign<S> for Vector2<S> where
S: BaseNum + DivAssign<S>,
fn div_assign(&mut self, scalar: S)
[src]
fn div_assign(&mut self, scalar: S)
Performs the /=
operation.
impl<S> Eq for Vector2<S> where
S: Eq,
[src]
impl<S> Eq for Vector2<S> where
S: Eq,
impl<S> PartialEq<Vector2<S>> for Vector2<S> where
S: PartialEq<S>,
[src]
impl<S> PartialEq<Vector2<S>> for Vector2<S> where
S: PartialEq<S>,
fn eq(&self, other: &Vector2<S>) -> bool
[src]
fn eq(&self, other: &Vector2<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Vector2<S>) -> bool
[src]
fn ne(&self, other: &Vector2<S>) -> bool
This method tests for !=
.
impl Div<Vector2<usize>> for usize
[src]
impl Div<Vector2<usize>> for usize
type Output = Vector2<usize>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<usize>) -> Vector2<usize>
[src]
fn div(self, other: Vector2<usize>) -> Vector2<usize>
Performs the /
operation.
impl<'a, S> Div<S> for &'a Vector2<S> where
S: BaseNum,
[src]
impl<'a, S> Div<S> for &'a Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the /
operator.
fn div(self, other: S) -> Vector2<S>
[src]
fn div(self, other: S) -> Vector2<S>
Performs the /
operation.
impl Div<Vector2<u64>> for u64
[src]
impl Div<Vector2<u64>> for u64
type Output = Vector2<u64>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<u64>) -> Vector2<u64>
[src]
fn div(self, other: Vector2<u64>) -> Vector2<u64>
Performs the /
operation.
impl Div<Vector2<u32>> for u32
[src]
impl Div<Vector2<u32>> for u32
type Output = Vector2<u32>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<u32>) -> Vector2<u32>
[src]
fn div(self, other: Vector2<u32>) -> Vector2<u32>
Performs the /
operation.
impl<'a> Div<&'a Vector2<f64>> for f64
[src]
impl<'a> Div<&'a Vector2<f64>> for f64
type Output = Vector2<f64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<f64>) -> Vector2<f64>
[src]
fn div(self, other: &'a Vector2<f64>) -> Vector2<f64>
Performs the /
operation.
impl Div<Vector2<f32>> for f32
[src]
impl Div<Vector2<f32>> for f32
type Output = Vector2<f32>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<f32>) -> Vector2<f32>
[src]
fn div(self, other: Vector2<f32>) -> Vector2<f32>
Performs the /
operation.
impl<'a> Div<&'a Vector2<i16>> for i16
[src]
impl<'a> Div<&'a Vector2<i16>> for i16
type Output = Vector2<i16>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<i16>) -> Vector2<i16>
[src]
fn div(self, other: &'a Vector2<i16>) -> Vector2<i16>
Performs the /
operation.
impl<'a> Div<&'a Vector2<u64>> for u64
[src]
impl<'a> Div<&'a Vector2<u64>> for u64
type Output = Vector2<u64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<u64>) -> Vector2<u64>
[src]
fn div(self, other: &'a Vector2<u64>) -> Vector2<u64>
Performs the /
operation.
impl<'a> Div<&'a Vector2<i64>> for i64
[src]
impl<'a> Div<&'a Vector2<i64>> for i64
type Output = Vector2<i64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<i64>) -> Vector2<i64>
[src]
fn div(self, other: &'a Vector2<i64>) -> Vector2<i64>
Performs the /
operation.
impl<'a> Div<&'a Vector2<i32>> for i32
[src]
impl<'a> Div<&'a Vector2<i32>> for i32
type Output = Vector2<i32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<i32>) -> Vector2<i32>
[src]
fn div(self, other: &'a Vector2<i32>) -> Vector2<i32>
Performs the /
operation.
impl<S> Div<S> for Vector2<S> where
S: BaseNum,
[src]
impl<S> Div<S> for Vector2<S> where
S: BaseNum,
type Output = Vector2<S>
The resulting type after applying the /
operator.
fn div(self, other: S) -> Vector2<S>
[src]
fn div(self, other: S) -> Vector2<S>
Performs the /
operation.
impl Div<Vector2<i16>> for i16
[src]
impl Div<Vector2<i16>> for i16
type Output = Vector2<i16>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<i16>) -> Vector2<i16>
[src]
fn div(self, other: Vector2<i16>) -> Vector2<i16>
Performs the /
operation.
impl Div<Vector2<isize>> for isize
[src]
impl Div<Vector2<isize>> for isize
type Output = Vector2<isize>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<isize>) -> Vector2<isize>
[src]
fn div(self, other: Vector2<isize>) -> Vector2<isize>
Performs the /
operation.
impl<'a> Div<&'a Vector2<u16>> for u16
[src]
impl<'a> Div<&'a Vector2<u16>> for u16
type Output = Vector2<u16>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<u16>) -> Vector2<u16>
[src]
fn div(self, other: &'a Vector2<u16>) -> Vector2<u16>
Performs the /
operation.
impl<'a> Div<&'a Vector2<isize>> for isize
[src]
impl<'a> Div<&'a Vector2<isize>> for isize
type Output = Vector2<isize>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<isize>) -> Vector2<isize>
[src]
fn div(self, other: &'a Vector2<isize>) -> Vector2<isize>
Performs the /
operation.
impl Div<Vector2<i32>> for i32
[src]
impl Div<Vector2<i32>> for i32
type Output = Vector2<i32>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<i32>) -> Vector2<i32>
[src]
fn div(self, other: Vector2<i32>) -> Vector2<i32>
Performs the /
operation.
impl<'a> Div<&'a Vector2<u8>> for u8
[src]
impl<'a> Div<&'a Vector2<u8>> for u8
type Output = Vector2<u8>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<u8>) -> Vector2<u8>
[src]
fn div(self, other: &'a Vector2<u8>) -> Vector2<u8>
Performs the /
operation.
impl Div<Vector2<f64>> for f64
[src]
impl Div<Vector2<f64>> for f64
type Output = Vector2<f64>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<f64>) -> Vector2<f64>
[src]
fn div(self, other: Vector2<f64>) -> Vector2<f64>
Performs the /
operation.
impl<'a> Div<&'a Vector2<f32>> for f32
[src]
impl<'a> Div<&'a Vector2<f32>> for f32
type Output = Vector2<f32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<f32>) -> Vector2<f32>
[src]
fn div(self, other: &'a Vector2<f32>) -> Vector2<f32>
Performs the /
operation.
impl Div<Vector2<i64>> for i64
[src]
impl Div<Vector2<i64>> for i64
type Output = Vector2<i64>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<i64>) -> Vector2<i64>
[src]
fn div(self, other: Vector2<i64>) -> Vector2<i64>
Performs the /
operation.
impl Div<Vector2<u16>> for u16
[src]
impl Div<Vector2<u16>> for u16
type Output = Vector2<u16>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<u16>) -> Vector2<u16>
[src]
fn div(self, other: Vector2<u16>) -> Vector2<u16>
Performs the /
operation.
impl<'a> Div<&'a Vector2<u32>> for u32
[src]
impl<'a> Div<&'a Vector2<u32>> for u32
type Output = Vector2<u32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<u32>) -> Vector2<u32>
[src]
fn div(self, other: &'a Vector2<u32>) -> Vector2<u32>
Performs the /
operation.
impl<'a> Div<&'a Vector2<i8>> for i8
[src]
impl<'a> Div<&'a Vector2<i8>> for i8
type Output = Vector2<i8>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector2<i8>) -> Vector2<i8>
[src]
fn div(self, other: &'a Vector2<i8>) -> Vector2<i8>
Performs the /
operation.
impl Div<Vector2<i8>> for i8
[src]
impl Div<Vector2<i8>> for i8
type Output = Vector2<i8>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<i8>) -> Vector2<i8>
[src]
fn div(self, other: Vector2<i8>) -> Vector2<i8>
Performs the /
operation.
impl Div<Vector2<u8>> for u8
[src]
impl Div<Vector2<u8>> for u8
type Output = Vector2<u8>
The resulting type after applying the /
operator.
fn div(self, other: Vector2<u8>) -> Vector2<u8>
[src]
fn div(self, other: Vector2<u8>) -> Vector2<u8>
Performs the /
operation.
impl<'a> Div<&'a Vector2<usize>> for usize
[src]
impl<'a> Div<&'a Vector2<usize>> for usize