Tuple Fields
0: [T; N]
Implementations
sourceimpl<T, const N: usize> Vector<T, N> where
T: Clone,
impl<T, const N: usize> Vector<T, N> where
T: Clone,
pub fn qda(&self) -> T
pub fn squared_magnitude(&self) -> T where
T: Sum + AddAssign,
for<'a> &'a T: Sub<&'a T, Output = T> + Mul<&'a T, Output = T>,
pub fn map<U, F>(&self, f: F) -> Vector<U, N> where
T: Clone,
F: Fn(T) -> U,
pub fn cast<U>(&self) -> Vector<U, N> where
T: Clone + Into<U>,
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 Vec<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<T, const N: usize> Add<&'_ Vector<T, N>> for Point<T, N> where
for<'a> &'a T: Add<&'a T, Output = T>,
impl<T, const N: usize> Add<&'_ Vector<T, N>> for Point<T, N> where
for<'a> &'a T: Add<&'a T, Output = T>,
sourceimpl<'a, 'b, T, const N: usize> Add<&'a Vector<T, N>> for &'b Point<T, N> where
for<'c> &'c T: Add<&'c T, Output = T>,
impl<'a, 'b, T, const N: usize> Add<&'a Vector<T, N>> for &'b Point<T, N> where
for<'c> &'c T: Add<&'c T, Output = T>,
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> Add<Vector<T, N>> for Point<T, N> where
for<'a> &'a T: Add<&'a T, Output = T>,
impl<T, const N: usize> Add<Vector<T, N>> for Point<T, N> where
for<'a> &'a T: Add<&'a T, Output = T>,
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>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more