#[repr(C)]pub struct Point4<S>(pub Vector4<S>);
Expand description
4D position
Tuple Fields§
§0: Vector4<S>
Implementations§
Trait Implementations§
Source§impl<S> AbsDiffEq for Point4<S>
impl<S> AbsDiffEq for Point4<S>
Source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
Source§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of
AbsDiffEq::abs_diff_eq
.Source§impl<S> AddAssign<&Vec4<S>> for Point4<S>where
S: AdditiveGroup + Copy,
impl<S> AddAssign<&Vec4<S>> for Point4<S>where
S: AdditiveGroup + Copy,
Source§fn add_assign(&mut self, displacement: &Vector4<S>)
fn add_assign(&mut self, displacement: &Vector4<S>)
Performs the
+=
operation. Read moreSource§impl<S> AddAssign<Vec4<S>> for Point4<S>where
S: AdditiveGroup,
impl<S> AddAssign<Vec4<S>> for Point4<S>where
S: AdditiveGroup,
Source§fn add_assign(&mut self, displacement: Vector4<S>)
fn add_assign(&mut self, displacement: Vector4<S>)
Performs the
+=
operation. Read moreSource§impl<S> FixedPoint4<S> for Point4<S>where
S: Fixed,
impl<S> FixedPoint4<S> for Point4<S>where
S: Fixed,
Source§impl<S> GroupAction<Point4<S>> for Vector4<S>where
S: AdditiveGroup,
impl<S> GroupAction<Point4<S>> for Vector4<S>where
S: AdditiveGroup,
Source§impl<S> RelativeEq for Point4<S>
impl<S> RelativeEq for Point4<S>
Source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
A test for equality that uses a relative comparison if the values are far apart.
Source§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
The inverse of
RelativeEq::relative_eq
.Source§impl<S> Sub for Point4<S>where
S: AdditiveGroup,
impl<S> Sub for Point4<S>where
S: AdditiveGroup,
Source§impl<S> SubAssign<&Vec4<S>> for Point4<S>where
S: AdditiveGroup + Copy,
impl<S> SubAssign<&Vec4<S>> for Point4<S>where
S: AdditiveGroup + Copy,
Source§fn sub_assign(&mut self, displacement: &Vector4<S>)
fn sub_assign(&mut self, displacement: &Vector4<S>)
Performs the
-=
operation. Read moreSource§impl<S> SubAssign<Vec4<S>> for Point4<S>where
S: AdditiveGroup,
impl<S> SubAssign<Vec4<S>> for Point4<S>where
S: AdditiveGroup,
Source§fn sub_assign(&mut self, displacement: Vector4<S>)
fn sub_assign(&mut self, displacement: Vector4<S>)
Performs the
-=
operation. Read moreSource§impl<S> UlpsEq for Point4<S>
impl<S> UlpsEq for Point4<S>
impl<S: Copy> Copy for Point4<S>
impl<S: Eq> Eq for Point4<S>
impl<S> StructuralPartialEq for Point4<S>
Auto Trait Implementations§
impl<S> Freeze for Point4<S>where
S: Freeze,
impl<S> RefUnwindSafe for Point4<S>where
S: RefUnwindSafe,
impl<S> Send for Point4<S>where
S: Send,
impl<S> Sync for Point4<S>where
S: Sync,
impl<S> Unpin for Point4<S>where
S: Unpin,
impl<S> UnwindSafe for Point4<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.