Tuple Fields
0: [T; N]
Implementations
sourceimpl<T> Vector<T, 2>
impl<T> Vector<T, 2>
pub fn unit_right() -> Vector<T, 2> where
T: PolygonScalar,
pub fn ccw_cmp_around(&self, p: &Vector<T, 2>, q: &Vector<T, 2>) -> Ordering where
T: PolygonScalar,
pub fn ccw_cmp_around_with(
&self,
z: &Vector<T, 2>,
p: &Vector<T, 2>,
q: &Vector<T, 2>
) -> Ordering where
T: PolygonScalar,
pub fn sort_around(pts: &mut [Vector<T, 2>]) where
T: PolygonScalar,
pub fn cmp_along(&self, p: &Point<T, 2>, q: &Point<T, 2>) -> Ordering where
T: PolygonScalar,
Trait Implementations
sourceimpl<'a, 'b, T, const N: usize> Add<&'a Vector<T, N>> for &'b Point<T, N> where
T: Add<Output = T> + Clone,
impl<'a, 'b, T, const N: usize> Add<&'a Vector<T, N>> for &'b Point<T, N> where
T: Add<Output = T> + Clone,
sourceimpl<'a, 'b, T, const N: usize> Add<&'b Vector<T, N>> for &'a Vector<T, N> where
T: NumOps + Clone,
impl<'a, 'b, T, const N: usize> Add<&'b Vector<T, N>> for &'a Vector<T, N> where
T: NumOps + Clone,
sourceimpl<T, const N: usize> AddAssign<&Vector<T, N>> for Point<T, N> where
T: NumOps + Clone + AddAssign,
impl<T, const N: usize> AddAssign<&Vector<T, N>> for Point<T, N> where
T: NumOps + Clone + AddAssign,
sourcefn add_assign(&mut self, other: &Vector<T, N>)
fn add_assign(&mut self, other: &Vector<T, N>)
Performs the +=
operation. Read more
sourceimpl<T, const N: usize> AddAssign<Vector<T, N>> for Point<T, N> where
T: NumOps + Clone + AddAssign,
impl<T, const N: usize> AddAssign<Vector<T, N>> for Point<T, N> where
T: NumOps + Clone + AddAssign,
sourcefn add_assign(&mut self, other: Vector<T, N>)
fn add_assign(&mut self, other: Vector<T, N>)
Performs the +=
operation. Read more
sourceimpl<T, const N: usize> AddAssign<Vector<T, N>> for Vector<T, N> where
T: NumOps + Clone + AddAssign,
impl<T, const N: usize> AddAssign<Vector<T, N>> for Vector<T, N> where
T: NumOps + Clone + AddAssign,
sourcefn add_assign(&mut self, other: Vector<T, N>)
fn add_assign(&mut self, other: Vector<T, N>)
Performs the +=
operation. Read more
sourceimpl<T, const N: usize> Distribution<Vector<T, N>> for Standard where
Standard: Distribution<T>,
impl<T, const N: usize> Distribution<Vector<T, N>> for Standard where
Standard: Distribution<T>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<'a, T, const N: usize> Mul<&'a Vector<T, N>> for Transform<T, N> where
T: TransformScalar,
impl<'a, T, const N: usize> Mul<&'a Vector<T, N>> for Transform<T, N> where
T: TransformScalar,
sourceimpl<'a, 'b, T, const N: usize> Mul<&'b Vector<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
impl<'a, 'b, T, const N: usize> Mul<&'b Vector<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
sourceimpl<'a, T, const N: usize> Mul<Vector<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
impl<'a, T, const N: usize> Mul<Vector<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
sourceimpl<T: Ord, const N: usize> Ord for Vector<T, N>
impl<T: Ord, const N: usize> Ord for Vector<T, N>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialOrd, const N: usize> PartialOrd<Vector<T, N>> for Vector<T, N>
impl<T: PartialOrd, const N: usize> PartialOrd<Vector<T, N>> for Vector<T, N>
sourcefn partial_cmp(&self, other: &Vector<T, N>) -> Option<Ordering>
fn partial_cmp(&self, other: &Vector<T, N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'a, 'b, T, const N: usize> Sub<&'a Vector<T, N>> for &'b Vector<T, N> where
T: Sub<T, Output = T> + Clone,
impl<'a, 'b, T, const N: usize> Sub<&'a Vector<T, N>> for &'b Vector<T, N> where
T: Sub<T, Output = T> + Clone,
sourceimpl<T, const N: usize> Sum<Vector<T, N>> for Vector<T, N> where
T: NumOps + AddAssign + Clone + Sum,
impl<T, const N: usize> Sum<Vector<T, N>> for Vector<T, N> where
T: NumOps + AddAssign + Clone + Sum,
impl<T: Eq, const N: usize> Eq for Vector<T, N>
impl<T, const N: usize> StructuralEq for Vector<T, N>
impl<T, const N: usize> StructuralPartialEq for Vector<T, N>
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for Vector<T, N> where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Vector<T, N> where
T: Send,
impl<T, const N: usize> Sync for Vector<T, N> where
T: Sync,
impl<T, const N: usize> Unpin for Vector<T, N> where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Vector<T, N> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more