#[repr(C)]pub struct Displacement4<S, U>(pub Vector4<S>, _);
Expand description
4D linear displacement vector coordinates tagged with unit
Tuple Fields§
§0: Vector4<S>
Trait Implementations§
Source§impl<S, U> Add<&Displacement4<S, U>> for Displacement4<S, U>
impl<S, U> Add<&Displacement4<S, U>> for Displacement4<S, U>
Source§impl<S, U> Add for Displacement4<S, U>
impl<S, U> Add for Displacement4<S, U>
Source§impl<S, U> AddAssign for Displacement4<S, U>
impl<S, U> AddAssign for Displacement4<S, U>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl<S, U> Clone for Displacement4<S, U>where
S: Clone,
impl<S, U> Clone for Displacement4<S, U>where
S: Clone,
Source§impl<S: Default, U: Default> Default for Displacement4<S, U>
impl<S: Default, U: Default> Default for Displacement4<S, U>
Source§fn default() -> Displacement4<S, U>
fn default() -> Displacement4<S, U>
Returns the “default value” for a type. Read more
Source§impl<S, U> Display for Displacement4<S, U>
impl<S, U> Display for Displacement4<S, U>
Source§impl<S, U> Div<S> for Displacement4<S, U>
impl<S, U> Div<S> for Displacement4<S, U>
Source§impl<S, U> Dot<S> for Displacement4<S, U>
impl<S, U> Dot<S> for Displacement4<S, U>
Source§impl<S, U> FixedVector4<S> for Displacement4<S, U>where
S: Fixed,
impl<S, U> FixedVector4<S> for Displacement4<S, U>where
S: Fixed,
Source§impl<S, U> From<[S; 4]> for Displacement4<S, U>
impl<S, U> From<[S; 4]> for Displacement4<S, U>
Source§impl<S, U> From<Displacement3<S, U>> for Displacement4<S, U>where
S: Field,
impl<S, U> From<Displacement3<S, U>> for Displacement4<S, U>where
S: Field,
Source§fn from(transform: Displacement3<S, U>) -> Self
fn from(transform: Displacement3<S, U>) -> Self
Converts to this type from the input type.
Source§impl<S, U> From<Vec4<S>> for Displacement4<S, U>
impl<S, U> From<Vec4<S>> for Displacement4<S, U>
Source§impl<S, U> Group for Displacement4<S, U>where
S: AdditiveGroup,
impl<S, U> Group for Displacement4<S, U>where
S: AdditiveGroup,
Source§impl<S, U> GroupAction<Position4<S, U>> for Displacement4<S, U>where
S: AdditiveGroup,
impl<S, U> GroupAction<Position4<S, U>> for Displacement4<S, U>where
S: AdditiveGroup,
Source§impl<S, U> InnerProductSpace<S> for Displacement4<S, U>
impl<S, U> InnerProductSpace<S> for Displacement4<S, U>
fn inner_product(self, other: Self) -> S
Source§impl<S, U, V> LinearMap<S, Displacement4<S, U>, Displacement4<S, V>> for Transform4<S, U, V>where
S: Ring,
impl<S, U, V> LinearMap<S, Displacement4<S, U>, Displacement4<S, V>> for Transform4<S, U, V>where
S: Ring,
Source§impl<S, U> Module<S> for Displacement4<S, U>
impl<S, U> Module<S> for Displacement4<S, U>
Source§type LinearEndo = Transform4<S, U, U>
type LinearEndo = Transform4<S, U, U>
Linear endomorphism represented by a square matrix type
Source§impl<S, U, V> Mul<Displacement4<S, U>> for Transform4<S, U, V>where
S: Ring,
impl<S, U, V> Mul<Displacement4<S, U>> for Transform4<S, U, V>where
S: Ring,
Source§type Output = Displacement4<S, V>
type Output = Displacement4<S, V>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Displacement4<S, U>) -> Displacement4<S, V>
fn mul(self, rhs: Displacement4<S, U>) -> Displacement4<S, V>
Performs the
*
operation. Read moreSource§impl<S, U> Mul<S> for Displacement4<S, U>
impl<S, U> Mul<S> for Displacement4<S, U>
Source§impl<S, U> Neg for Displacement4<S, U>
impl<S, U> Neg for Displacement4<S, U>
Source§impl<S, U> PartialEq for Displacement4<S, U>
impl<S, U> PartialEq for Displacement4<S, U>
Source§impl<S, U> Point<Displacement4<S, U>> for Displacement4<S, U>where
S: Ring,
impl<S, U> Point<Displacement4<S, U>> for Displacement4<S, U>where
S: Ring,
fn to_vector(self) -> Displacement4<S, U>
fn from_vector(displacement: Displacement4<S, U>) -> Self
fn origin() -> Self
Source§impl<S, U> Point<Displacement4<S, U>> for Position4<S, U>where
S: Ring,
impl<S, U> Point<Displacement4<S, U>> for Position4<S, U>where
S: Ring,
fn to_vector(self) -> Displacement4<S, U>
fn from_vector(displacement: Displacement4<S, U>) -> Self
fn origin() -> Self
Source§impl<S, U> ProjectiveSpace<S, Displacement3<S, U>> for Displacement4<S, U>
impl<S, U> ProjectiveSpace<S, Displacement3<S, U>> for Displacement4<S, U>
Source§fn homography<A>(
affinity: Affinity<S, A, A, <A::Vector as Module<S>>::LinearEndo>,
) -> Projectivity<S, Displacement3<S, U>, Displacement3<S, U>, Self, Self, Self::LinearEndo>where
A: AffineSpace<S, Vector = Displacement3<S, U>>,
fn homography<A>(
affinity: Affinity<S, A, A, <A::Vector as Module<S>>::LinearEndo>,
) -> Projectivity<S, Displacement3<S, U>, Displacement3<S, U>, Self, Self, Self::LinearEndo>where
A: AffineSpace<S, Vector = Displacement3<S, U>>,
Construct an augmented matrix for the affinity
Source§impl<S, U> Sub<&Displacement4<S, U>> for Displacement4<S, U>
impl<S, U> Sub<&Displacement4<S, U>> for Displacement4<S, U>
Source§impl<S, U> Sub for Displacement4<S, U>
impl<S, U> Sub for Displacement4<S, U>
Source§impl<S, U> SubAssign for Displacement4<S, U>
impl<S, U> SubAssign for Displacement4<S, U>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreSource§impl<S, U> VectorSpace<S> for Displacement4<S, U>
impl<S, U> VectorSpace<S> for Displacement4<S, U>
Source§impl<S, U> Zero for Displacement4<S, U>where
S: AdditiveGroup,
impl<S, U> Zero for Displacement4<S, U>where
S: AdditiveGroup,
impl<S, U> AdditiveGroup for Displacement4<S, U>
impl<S, U> AdditiveMonoid for Displacement4<S, U>
impl<S, U> Copy for Displacement4<S, U>where
S: Copy,
impl<S: Eq, U: Eq> Eq for Displacement4<S, U>
Auto Trait Implementations§
impl<S, U> Freeze for Displacement4<S, U>where
S: Freeze,
impl<S, U> RefUnwindSafe for Displacement4<S, U>where
S: RefUnwindSafe,
U: RefUnwindSafe,
impl<S, U> Send for Displacement4<S, U>
impl<S, U> Sync for Displacement4<S, U>
impl<S, U> Unpin for Displacement4<S, U>
impl<S, U> UnwindSafe for Displacement4<S, U>where
S: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
Source§impl<S, V> AffineSpace<S> for V
impl<S, V> AffineSpace<S> for V
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<V, S> MetricSpace<S> for Vwhere
V: NormedVectorSpace<S>,
S: Field,
impl<V, S> MetricSpace<S> for Vwhere
V: NormedVectorSpace<S>,
S: Field,
Source§impl<V, S> NormedVectorSpace<S> for Vwhere
V: InnerProductSpace<S>,
S: Field,
impl<V, S> NormedVectorSpace<S> for Vwhere
V: InnerProductSpace<S>,
S: Field,
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.