Expand description
A point with D
elements.
Implementations
sourceimpl<T: Scalar, const D: usize> Point<T, D> where
Const<D>: ToTypenum,
impl<T: Scalar, const D: usize> Point<T, D> where
Const<D>: ToTypenum,
sourcepub fn xx(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U0, Output = Greater>,
pub fn xx(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U0, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xxx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U0, Output = Greater>,
pub fn xxx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U0, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xy(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn xy(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yx(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn yx(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yy(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn yy(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xxy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn xxy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xyx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn xyx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xyy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn xyy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yxx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn yxx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yxy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn yxy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yyx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn yyx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yyy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
pub fn yyy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U1, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xz(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn xz(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yz(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn yz(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zx(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zx(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zy(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zy(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zz(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zz(&self) -> Point2<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xxz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn xxz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xyz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn xyz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xzx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn xzx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xzy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn xzy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn xzz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn xzz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yxz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn yxz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yyz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn yyz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yzx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn yzx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yzy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn yzy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn yzz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn yzz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zxx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zxx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zxy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zxy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zxz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zxz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zyx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zyx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zyy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zyy(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zyz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zyz(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
sourcepub fn zzx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
pub fn zzx(&self) -> Point3<T> where
<Const<D> as ToTypenum>::Typenum: Cmp<U2, Output = Greater>,
Builds a new point from components of self
.
Trait Implementations
sourceimpl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 16]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 16]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
impl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 16]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 16]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
sourceimpl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 2]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 2]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
impl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 2]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 2]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
sourceimpl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 4]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 4]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
impl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 4]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 4]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
sourceimpl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 8]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 8]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
impl<T: Scalar + Copy + PrimitiveSimdValue, const D: usize> From<[OPoint<<T as SimdValue>::Element, Const<D>>; 8]> for Point<T, D> where
T: From<[<T as SimdValue>::Element; 8]>,
T::Element: Scalar + Copy,
<DefaultAllocator as Allocator<T::Element, Const<D>>>::Buffer: Copy,
sourceimpl<T: Scalar + SimdValue, const D: usize> SimdValue for Point<T, D> where
T::Element: Scalar,
impl<T: Scalar + SimdValue, const D: usize> SimdValue for Point<T, D> where
T::Element: Scalar,
type Element = OPoint<<T as SimdValue>::Element, Const<D>>
type Element = OPoint<<T as SimdValue>::Element, Const<D>>
The type of the elements of each lane of this SIMD value.
type SimdBool = <T as SimdValue>::SimdBool
type SimdBool = <T as SimdValue>::SimdBool
Type of the result of comparing two SIMD values like self
.
sourceunsafe fn extract_unchecked(&self, i: usize) -> Self::Element
unsafe fn extract_unchecked(&self, i: usize) -> Self::Element
Extracts the i-th lane of self
without bound-checking.
sourcefn replace(&mut self, i: usize, val: Self::Element)
fn replace(&mut self, i: usize, val: Self::Element)
Replaces the i-th lane of self
by val
. Read more
sourceunsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)
unsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)
Replaces the i-th lane of self
by val
without bound-checking.
sourcefn select(self, cond: Self::SimdBool, other: Self) -> Self
fn select(self, cond: Self::SimdBool, other: Self) -> Self
Merges self
and other
depending on the lanes of cond
. Read more