Struct nalgebra::geometry::Translation
source · #[repr(C)]pub struct Translation<N: Scalar, D: DimName>where
DefaultAllocator: Allocator<N, D>,{
pub vector: VectorN<N, D>,
}
Expand description
A translation.
Fields§
§vector: VectorN<N, D>
The translation coordinates, i.e., how much is added to a point’s coordinates when it is translated.
Implementations§
source§impl<N: Scalar, D: DimName> Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Scalar, D: DimName> Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
sourcepub fn from_vector(vector: VectorN<N, D>) -> Translation<N, D>
👎Deprecated: Use ::from
instead.
pub fn from_vector(vector: VectorN<N, D>) -> Translation<N, D>
::from
instead.Creates a new translation from the given vector.
sourcepub fn inverse(&self) -> Translation<N, D>where
N: ClosedNeg,
pub fn inverse(&self) -> Translation<N, D>where
N: ClosedNeg,
Inverts self
.
Example
let t = Translation3::new(1.0, 2.0, 3.0);
assert_eq!(t * t.inverse(), Translation3::identity());
assert_eq!(t.inverse() * t, Translation3::identity());
// Work in all dimensions.
let t = Translation2::new(1.0, 2.0);
assert_eq!(t * t.inverse(), Translation2::identity());
assert_eq!(t.inverse() * t, Translation2::identity());
sourcepub fn to_homogeneous(&self) -> MatrixN<N, DimNameSum<D, U1>>where
N: Zero + One,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>>,
pub fn to_homogeneous(&self) -> MatrixN<N, DimNameSum<D, U1>>where
N: Zero + One,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>>,
Converts this translation into its equivalent homogeneous transformation matrix.
Example
let t = Translation3::new(10.0, 20.0, 30.0);
let expected = Matrix4::new(1.0, 0.0, 0.0, 10.0,
0.0, 1.0, 0.0, 20.0,
0.0, 0.0, 1.0, 30.0,
0.0, 0.0, 0.0, 1.0);
assert_eq!(t.to_homogeneous(), expected);
let t = Translation2::new(10.0, 20.0);
let expected = Matrix3::new(1.0, 0.0, 10.0,
0.0, 1.0, 20.0,
0.0, 0.0, 1.0);
assert_eq!(t.to_homogeneous(), expected);
sourcepub fn inverse_mut(&mut self)where
N: ClosedNeg,
pub fn inverse_mut(&mut self)where
N: ClosedNeg,
Inverts self
in-place.
Example
let t = Translation3::new(1.0, 2.0, 3.0);
let mut inv_t = Translation3::new(1.0, 2.0, 3.0);
inv_t.inverse_mut();
assert_eq!(t * inv_t, Translation3::identity());
assert_eq!(inv_t * t, Translation3::identity());
// Work in all dimensions.
let t = Translation2::new(1.0, 2.0);
let mut inv_t = Translation2::new(1.0, 2.0);
inv_t.inverse_mut();
assert_eq!(t * inv_t, Translation2::identity());
assert_eq!(inv_t * t, Translation2::identity());
source§impl<N: Scalar + Zero, D: DimName> Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Scalar + Zero, D: DimName> Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
sourcepub fn identity() -> Translation<N, D>
pub fn identity() -> Translation<N, D>
Creates a new identity translation.
Example
let t = Translation2::identity();
let p = Point2::new(1.0, 2.0);
assert_eq!(t * p, p);
// Works in all dimensions.
let t = Translation3::identity();
let p = Point3::new(1.0, 2.0, 3.0);
assert_eq!(t * p, p);
source§impl<N: Scalar> Translation<N, U1>where
DefaultAllocator: Allocator<N, U1>,
impl<N: Scalar> Translation<N, U1>where
DefaultAllocator: Allocator<N, U1>,
source§impl<N: Scalar> Translation<N, U2>where
DefaultAllocator: Allocator<N, U2>,
impl<N: Scalar> Translation<N, U2>where
DefaultAllocator: Allocator<N, U2>,
source§impl<N: Scalar> Translation<N, U3>where
DefaultAllocator: Allocator<N, U3>,
impl<N: Scalar> Translation<N, U3>where
DefaultAllocator: Allocator<N, U3>,
source§impl<N: Scalar> Translation<N, U4>where
DefaultAllocator: Allocator<N, U4>,
impl<N: Scalar> Translation<N, U4>where
DefaultAllocator: Allocator<N, U4>,
source§impl<N: Scalar> Translation<N, U5>where
DefaultAllocator: Allocator<N, U5>,
impl<N: Scalar> Translation<N, U5>where
DefaultAllocator: Allocator<N, U5>,
source§impl<N: Scalar> Translation<N, U6>where
DefaultAllocator: Allocator<N, U6>,
impl<N: Scalar> Translation<N, U6>where
DefaultAllocator: Allocator<N, U6>,
sourcepub fn new(x: N, y: N, z: N, w: N, a: N, b: N) -> Self
pub fn new(x: N, y: N, z: N, w: N, a: N, b: N) -> Self
Initializes this translation from its components.
Example
let t = Translation6::new(1.0, 2.0, 3.0, 4.0, 5.0, 6.0);
assert!(t.vector.x == 1.0 && t.vector.y == 2.0 && t.vector.z == 3.0 && t.vector.w == 4.0 && t.vector.a == 5.0 && t.vector.b == 6.0);
Trait Implementations§
source§impl<N: Scalar + AbsDiffEq, D: DimName> AbsDiffEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
N::Epsilon: Copy,
impl<N: Scalar + AbsDiffEq, D: DimName> AbsDiffEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
N::Epsilon: Copy,
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§impl<N: Real, D: DimName> AbstractMagma<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> AbstractMagma<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§impl<N: Real, D: DimName> AbstractMonoid<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> AbstractMonoid<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§fn prop_operating_identity_element_is_noop_approx(args: (Self,)) -> boolwhere
Self: RelativeEq<Self>,
fn prop_operating_identity_element_is_noop_approx(args: (Self,)) -> boolwhere
Self: RelativeEq<Self>,
Checks whether operating with the identity element is a no-op for the given
argument. Approximate equality is used for verifications. Read more
source§impl<N: Real, D: DimName> AbstractQuasigroup<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> AbstractQuasigroup<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§fn prop_inv_is_latin_square_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq<Self>,
fn prop_inv_is_latin_square_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq<Self>,
Returns
true
if latin squareness holds for the given arguments. Approximate
equality is used for verifications. Read moresource§impl<N: Real, D: DimName> AbstractSemigroup<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> AbstractSemigroup<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§fn prop_is_associative_approx(args: (Self, Self, Self)) -> boolwhere
Self: RelativeEq<Self>,
fn prop_is_associative_approx(args: (Self, Self, Self)) -> boolwhere
Self: RelativeEq<Self>,
Returns
true
if associativity holds for the given arguments. Approximate equality is used
for verifications. Read moresource§impl<N: Real, D: DimName> AffineTransformation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> AffineTransformation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
§type Rotation = Id<Multiplicative>
type Rotation = Id<Multiplicative>
Type of the first rotation to be applied.
§type NonUniformScaling = Id<Multiplicative>
type NonUniformScaling = Id<Multiplicative>
Type of the non-uniform scaling to be applied.
§type Translation = Translation<N, D>
type Translation = Translation<N, D>
The type of the pure translation part of this affine transformation.
source§fn decompose(&self) -> (Self, Id, Id, Id)
fn decompose(&self) -> (Self, Id, Id, Id)
Decomposes this affine transformation into a rotation followed by a non-uniform scaling,
followed by a rotation, followed by a translation. Read more
source§fn append_translation(&self, t: &Self::Translation) -> Self
fn append_translation(&self, t: &Self::Translation) -> Self
Appends a translation to this similarity.
source§fn prepend_translation(&self, t: &Self::Translation) -> Self
fn prepend_translation(&self, t: &Self::Translation) -> Self
Prepends a translation to this similarity.
source§fn append_rotation(&self, _: &Self::Rotation) -> Self
fn append_rotation(&self, _: &Self::Rotation) -> Self
Appends a rotation to this similarity.
source§fn prepend_rotation(&self, _: &Self::Rotation) -> Self
fn prepend_rotation(&self, _: &Self::Rotation) -> Self
Prepends a rotation to this similarity.
source§fn append_scaling(&self, _: &Self::NonUniformScaling) -> Self
fn append_scaling(&self, _: &Self::NonUniformScaling) -> Self
Appends a scaling factor to this similarity.
source§fn prepend_scaling(&self, _: &Self::NonUniformScaling) -> Self
fn prepend_scaling(&self, _: &Self::NonUniformScaling) -> Self
Prepends a scaling factor to this similarity.
source§impl<N: Scalar, D: DimName> Clone for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
Owned<N, D>: Clone,
impl<N: Scalar, D: DimName> Clone for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
Owned<N, D>: Clone,
source§impl<N: Debug + Scalar, D: Debug + DimName> Debug for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Debug + Scalar, D: Debug + DimName> Debug for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§impl<N: Real + Display, D: DimName> Display for Translation<N, D>where
DefaultAllocator: Allocator<N, D> + Allocator<usize, D>,
impl<N: Real + Display, D: DimName> Display for Translation<N, D>where
DefaultAllocator: Allocator<N, D> + Allocator<usize, D>,
source§impl<N: Scalar, D: DimName> Distribution<Translation<N, D>> for Standardwhere
DefaultAllocator: Allocator<N, D>,
Standard: Distribution<N>,
impl<N: Scalar, D: DimName> Distribution<Translation<N, D>> for Standardwhere
DefaultAllocator: Allocator<N, D>,
Standard: Distribution<N>,
source§impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
/
operator.source§impl<'a, 'b, N, D: DimName> Div<&'b Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'a, 'b, N, D: DimName> Div<&'b Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
/
operator.source§impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
/
operator.source§impl<'b, N, D: DimName> Div<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'b, N, D: DimName> Div<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
/
operator.source§impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
/
operator.source§impl<'a, N, D: DimName> Div<Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'a, N, D: DimName> Div<Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
/
operator.source§impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Div<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
/
operator.source§impl<N, D: DimName> Div<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<N, D: DimName> Div<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
/
operator.source§impl<'b, N, D: DimNameAdd<U1>, C: TCategory> DivAssign<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
impl<'b, N, D: DimNameAdd<U1>, C: TCategory> DivAssign<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
source§fn div_assign(&mut self, rhs: &'b Translation<N, D>)
fn div_assign(&mut self, rhs: &'b Translation<N, D>)
Performs the
/=
operation. Read moresource§impl<'b, N, D: DimName> DivAssign<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
impl<'b, N, D: DimName> DivAssign<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
source§fn div_assign(&mut self, right: &'b Translation<N, D>)
fn div_assign(&mut self, right: &'b Translation<N, D>)
Performs the
/=
operation. Read moresource§impl<N, D: DimNameAdd<U1>, C: TCategory> DivAssign<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
impl<N, D: DimNameAdd<U1>, C: TCategory> DivAssign<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
source§fn div_assign(&mut self, rhs: Translation<N, D>)
fn div_assign(&mut self, rhs: Translation<N, D>)
Performs the
/=
operation. Read moresource§impl<N, D: DimName> DivAssign<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
impl<N, D: DimName> DivAssign<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedSub,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
source§fn div_assign(&mut self, right: Translation<N, D>)
fn div_assign(&mut self, right: Translation<N, D>)
Performs the
/=
operation. Read moresource§impl<N: Scalar, D: DimName> From<Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Scalar, D: DimName> From<Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§impl<N: Scalar + Zero + One, D: DimName> From<Translation<N, D>> for MatrixN<N, DimNameSum<D, U1>>where
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, D> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>>,
impl<N: Scalar + Zero + One, D: DimName> From<Translation<N, D>> for MatrixN<N, DimNameSum<D, U1>>where
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, D> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>>,
source§fn from(t: Translation<N, D>) -> Self
fn from(t: Translation<N, D>) -> Self
Converts to this type from the input type.
source§impl<N: Scalar + Hash, D: DimName + Hash> Hash for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
Owned<N, D>: Hash,
impl<N: Scalar + Hash, D: DimName + Hash> Hash for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
Owned<N, D>: Hash,
source§impl<N: Real, D: DimName> Identity<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> Identity<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§impl<N: Real, D: DimName> Inverse<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> Inverse<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Isometry<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Isometry<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<'b, N: Real, D: DimName, R> Mul<&'b Isometry<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'b, N: Real, D: DimName, R> Mul<&'b Isometry<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<'a, 'b, N, D: DimName> Mul<&'b Point<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'a, 'b, N, D: DimName> Mul<&'b Point<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
source§impl<'b, N, D: DimName> Mul<&'b Point<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'b, N, D: DimName> Mul<&'b Point<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
source§impl<'a, 'b, N: Real, D: DimName> Mul<&'b Rotation<N, D>> for &'a Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<'a, 'b, N: Real, D: DimName> Mul<&'b Rotation<N, D>> for &'a Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<'b, N: Real, D: DimName> Mul<&'b Rotation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<'b, N: Real, D: DimName> Mul<&'b Rotation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Similarity<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Similarity<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<'b, N: Real, D: DimName, R> Mul<&'b Similarity<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'b, N: Real, D: DimName, R> Mul<&'b Similarity<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for &'a Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for &'a Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<'a, 'b, N: Real, D: DimName> Mul<&'b Translation<N, D>> for &'a Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<'a, 'b, N: Real, D: DimName> Mul<&'b Translation<N, D>> for &'a Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for &'a Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, 'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for &'a Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<'a, 'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
*
operator.source§impl<'a, 'b, N, D: DimName> Mul<&'b Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'a, 'b, N, D: DimName> Mul<&'b Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
*
operator.source§impl<'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<'b, N: Real, D: DimName> Mul<&'b Translation<N, D>> for Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<'b, N: Real, D: DimName> Mul<&'b Translation<N, D>> for Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'b, N: Real, D: DimName, R> Mul<&'b Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<'b, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
*
operator.source§impl<'b, N, D: DimName> Mul<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'b, N, D: DimName> Mul<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
*
operator.source§impl<'a, 'b, N: Real> Mul<&'b Translation<N, U2>> for &'a UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<'a, 'b, N: Real> Mul<&'b Translation<N, U2>> for &'a UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<'b, N: Real> Mul<&'b Translation<N, U2>> for UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<'b, N: Real> Mul<&'b Translation<N, U2>> for UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<'a, 'b, N: Real> Mul<&'b Translation<N, U3>> for &'a UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<'a, 'b, N: Real> Mul<&'b Translation<N, U3>> for &'a UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<'b, N: Real> Mul<&'b Translation<N, U3>> for UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<'b, N: Real> Mul<&'b Translation<N, U3>> for UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<'a, 'b, N: Real> Mul<&'b Unit<Complex<N>>> for &'a Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<'a, 'b, N: Real> Mul<&'b Unit<Complex<N>>> for &'a Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<'b, N: Real> Mul<&'b Unit<Complex<N>>> for Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<'b, N: Real> Mul<&'b Unit<Complex<N>>> for Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<'a, 'b, N: Real> Mul<&'b Unit<Quaternion<N>>> for &'a Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<'a, 'b, N: Real> Mul<&'b Unit<Quaternion<N>>> for &'a Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<'b, N: Real> Mul<&'b Unit<Quaternion<N>>> for Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<'b, N: Real> Mul<&'b Unit<Quaternion<N>>> for Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<'a, N: Real, D: DimName, R> Mul<Isometry<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, N: Real, D: DimName, R> Mul<Isometry<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<N: Real, D: DimName, R> Mul<Isometry<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName, R> Mul<Isometry<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<'a, N, D: DimName> Mul<Point<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'a, N, D: DimName> Mul<Point<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
source§impl<N, D: DimName> Mul<Point<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<N, D: DimName> Mul<Point<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
source§impl<'a, N: Real, D: DimName> Mul<Rotation<N, D>> for &'a Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<'a, N: Real, D: DimName> Mul<Rotation<N, D>> for &'a Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<N: Real, D: DimName> Mul<Rotation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<N: Real, D: DimName> Mul<Rotation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<'a, N: Real, D: DimName, R> Mul<Similarity<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, N: Real, D: DimName, R> Mul<Similarity<N, D, R>> for &'a Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<N: Real, D: DimName, R> Mul<Similarity<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName, R> Mul<Similarity<N, D, R>> for Translation<N, D>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Transform<N, D, C>> for &'a Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Transform<N, D, C>> for Translation<N, D>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, DimNameSum<D, U1>>,
source§impl<'a, N: Real, D: DimName, R> Mul<Translation<N, D>> for &'a Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, N: Real, D: DimName, R> Mul<Translation<N, D>> for &'a Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<'a, N: Real, D: DimName> Mul<Translation<N, D>> for &'a Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<'a, N: Real, D: DimName> Mul<Translation<N, D>> for &'a Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<'a, N: Real, D: DimName, R> Mul<Translation<N, D>> for &'a Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'a, N: Real, D: DimName, R> Mul<Translation<N, D>> for &'a Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<'a, N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Translation<N, D>> for &'a Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
*
operator.source§impl<'a, N, D: DimName> Mul<Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<'a, N, D: DimName> Mul<Translation<N, D>> for &'a Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
*
operator.source§impl<N: Real, D: DimName, R> Mul<Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName, R> Mul<Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§impl<N: Real, D: DimName> Mul<Translation<N, D>> for Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
impl<N: Real, D: DimName> Mul<Translation<N, D>> for Rotation<N, D>where
DefaultAllocator: Allocator<N, D, D> + Allocator<N, D, U1>,
source§impl<N: Real, D: DimName, R> Mul<Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName, R> Mul<Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
§type Output = Similarity<N, D, R>
type Output = Similarity<N, D, R>
The resulting type after applying the
*
operator.source§impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
impl<N, D: DimNameAdd<U1>, C: TCategoryMul<TAffine>> Mul<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1> + Allocator<N, DimNameSum<D, U1>, U1>,
§type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
type Output = Transform<N, D, <C as TCategoryMul<TAffine>>::Representative>
The resulting type after applying the
*
operator.source§impl<N, D: DimName> Mul<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
impl<N, D: DimName> Mul<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1> + SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D, Representative = D> + SameNumberOfColumns<U1, U1>,
§type Output = Translation<N, D>
type Output = Translation<N, D>
The resulting type after applying the
*
operator.source§impl<'a, N: Real> Mul<Translation<N, U2>> for &'a UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<'a, N: Real> Mul<Translation<N, U2>> for &'a UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<N: Real> Mul<Translation<N, U2>> for UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<N: Real> Mul<Translation<N, U2>> for UnitComplex<N>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<'a, N: Real> Mul<Translation<N, U3>> for &'a UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<'a, N: Real> Mul<Translation<N, U3>> for &'a UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<N: Real> Mul<Translation<N, U3>> for UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<N: Real> Mul<Translation<N, U3>> for UnitQuaternion<N>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<'a, N: Real> Mul<Unit<Complex<N>>> for &'a Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<'a, N: Real> Mul<Unit<Complex<N>>> for &'a Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<N: Real> Mul<Unit<Complex<N>>> for Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
impl<N: Real> Mul<Unit<Complex<N>>> for Translation<N, U2>where
DefaultAllocator: Allocator<N, U2, U1>,
source§impl<'a, N: Real> Mul<Unit<Quaternion<N>>> for &'a Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<'a, N: Real> Mul<Unit<Quaternion<N>>> for &'a Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<N: Real> Mul<Unit<Quaternion<N>>> for Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
impl<N: Real> Mul<Unit<Quaternion<N>>> for Translation<N, U3>where
DefaultAllocator: Allocator<N, U4, U1> + Allocator<N, U3, U1>,
source§impl<'b, N: Real, D: DimName, R> MulAssign<&'b Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'b, N: Real, D: DimName, R> MulAssign<&'b Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§fn mul_assign(&mut self, rhs: &'b Translation<N, D>)
fn mul_assign(&mut self, rhs: &'b Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<'b, N: Real, D: DimName, R> MulAssign<&'b Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<'b, N: Real, D: DimName, R> MulAssign<&'b Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§fn mul_assign(&mut self, rhs: &'b Translation<N, D>)
fn mul_assign(&mut self, rhs: &'b Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<'b, N, D: DimNameAdd<U1>, C: TCategory> MulAssign<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
impl<'b, N, D: DimNameAdd<U1>, C: TCategory> MulAssign<&'b Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
source§fn mul_assign(&mut self, rhs: &'b Translation<N, D>)
fn mul_assign(&mut self, rhs: &'b Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<'b, N, D: DimName> MulAssign<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
impl<'b, N, D: DimName> MulAssign<&'b Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
source§fn mul_assign(&mut self, right: &'b Translation<N, D>)
fn mul_assign(&mut self, right: &'b Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<N: Real, D: DimName, R> MulAssign<Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName, R> MulAssign<Translation<N, D>> for Isometry<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§fn mul_assign(&mut self, rhs: Translation<N, D>)
fn mul_assign(&mut self, rhs: Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<N: Real, D: DimName, R> MulAssign<Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName, R> MulAssign<Translation<N, D>> for Similarity<N, D, R>where
R: AlgaRotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D>,
source§fn mul_assign(&mut self, rhs: Translation<N, D>)
fn mul_assign(&mut self, rhs: Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<N, D: DimNameAdd<U1>, C: TCategory> MulAssign<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
impl<N, D: DimNameAdd<U1>, C: TCategory> MulAssign<Translation<N, D>> for Transform<N, D, C>where
N: Scalar + Zero + One + ClosedAdd + ClosedMul + Real,
DefaultAllocator: Allocator<N, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N, D, U1>,
source§fn mul_assign(&mut self, rhs: Translation<N, D>)
fn mul_assign(&mut self, rhs: Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<N, D: DimName> MulAssign<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
impl<N, D: DimName> MulAssign<Translation<N, D>> for Translation<N, D>where
N: Scalar + ClosedAdd,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D> + SameNumberOfColumns<U1, U1>,
source§fn mul_assign(&mut self, right: Translation<N, D>)
fn mul_assign(&mut self, right: Translation<N, D>)
Performs the
*=
operation. Read moresource§impl<N: Scalar + Zero + ClosedAdd, D: DimName> One for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Scalar + Zero + ClosedAdd, D: DimName> One for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§impl<N: Scalar + PartialEq, D: DimName> PartialEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Scalar + PartialEq, D: DimName> PartialEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§fn eq(&self, right: &Translation<N, D>) -> bool
fn eq(&self, right: &Translation<N, D>) -> bool
source§impl<N: Real, D: DimName> ProjectiveTransformation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> ProjectiveTransformation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§fn inverse_transform_point(&self, pt: &Point<N, D>) -> Point<N, D>
fn inverse_transform_point(&self, pt: &Point<N, D>) -> Point<N, D>
Applies this group’s inverse action on a point from the euclidean space.
source§impl<N: Scalar + RelativeEq, D: DimName> RelativeEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
N::Epsilon: Copy,
impl<N: Scalar + RelativeEq, D: DimName> RelativeEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
N::Epsilon: Copy,
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§impl<N: Real, D: DimName> Similarity<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> Similarity<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
§type Scaling = Id<Multiplicative>
type Scaling = Id<Multiplicative>
The type of the pure (uniform) scaling part of this similarity transformation.
source§fn translation(&self) -> Self
fn translation(&self) -> Self
The pure translational component of this similarity transformation.
source§fn translate_point(&self, pt: &E) -> E
fn translate_point(&self, pt: &E) -> E
Applies this transformation’s pure translational part to a point.
source§fn rotate_point(&self, pt: &E) -> E
fn rotate_point(&self, pt: &E) -> E
Applies this transformation’s pure rotational part to a point.
source§fn scale_point(&self, pt: &E) -> E
fn scale_point(&self, pt: &E) -> E
Applies this transformation’s pure scaling part to a point.
source§fn rotate_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
fn rotate_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
Applies this transformation’s pure rotational part to a vector.
source§fn scale_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
fn scale_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
Applies this transformation’s pure scaling part to a vector.
source§fn inverse_translate_point(&self, pt: &E) -> E
fn inverse_translate_point(&self, pt: &E) -> E
Applies this transformation inverse’s pure translational part to a point.
source§fn inverse_rotate_point(&self, pt: &E) -> E
fn inverse_rotate_point(&self, pt: &E) -> E
Applies this transformation inverse’s pure rotational part to a point.
source§fn inverse_scale_point(&self, pt: &E) -> E
fn inverse_scale_point(&self, pt: &E) -> E
Applies this transformation inverse’s pure scaling part to a point.
source§fn inverse_rotate_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
fn inverse_rotate_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
Applies this transformation inverse’s pure rotational part to a vector.
source§fn inverse_scale_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
fn inverse_scale_vector(
&self,
pt: &<E as EuclideanSpace>::Coordinates
) -> <E as EuclideanSpace>::Coordinates
Applies this transformation inverse’s pure scaling part to a vector.
source§impl<N1, N2, D: DimName, R> SubsetOf<Isometry<N2, D, R>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
R: Rotation<Point<N2, D>>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D>,
impl<N1, N2, D: DimName, R> SubsetOf<Isometry<N2, D, R>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
R: Rotation<Point<N2, D>>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D>,
source§fn to_superset(&self) -> Isometry<N2, D, R>
fn to_superset(&self) -> Isometry<N2, D, R>
The inclusion map: converts
self
to the equivalent element of its superset.source§fn is_in_subset(iso: &Isometry<N2, D, R>) -> bool
fn is_in_subset(iso: &Isometry<N2, D, R>) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).source§unsafe fn from_superset_unchecked(iso: &Isometry<N2, D, R>) -> Self
unsafe fn from_superset_unchecked(iso: &Isometry<N2, D, R>) -> Self
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.source§impl<N1, N2, D> SubsetOf<Matrix<N2, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>>::Buffer>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D> + Allocator<N1, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N2, DimNameSum<D, U1>, DimNameSum<D, U1>>,
impl<N1, N2, D> SubsetOf<Matrix<N2, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>>::Buffer>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D> + Allocator<N1, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N2, DimNameSum<D, U1>, DimNameSum<D, U1>>,
source§fn to_superset(&self) -> MatrixN<N2, DimNameSum<D, U1>>
fn to_superset(&self) -> MatrixN<N2, DimNameSum<D, U1>>
The inclusion map: converts
self
to the equivalent element of its superset.source§fn is_in_subset(m: &MatrixN<N2, DimNameSum<D, U1>>) -> bool
fn is_in_subset(m: &MatrixN<N2, DimNameSum<D, U1>>) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).source§unsafe fn from_superset_unchecked(m: &MatrixN<N2, DimNameSum<D, U1>>) -> Self
unsafe fn from_superset_unchecked(m: &MatrixN<N2, DimNameSum<D, U1>>) -> Self
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.source§impl<N1, N2, D: DimName, R> SubsetOf<Similarity<N2, D, R>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
R: Rotation<Point<N2, D>>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D>,
impl<N1, N2, D: DimName, R> SubsetOf<Similarity<N2, D, R>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
R: Rotation<Point<N2, D>>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D>,
source§fn to_superset(&self) -> Similarity<N2, D, R>
fn to_superset(&self) -> Similarity<N2, D, R>
The inclusion map: converts
self
to the equivalent element of its superset.source§fn is_in_subset(sim: &Similarity<N2, D, R>) -> bool
fn is_in_subset(sim: &Similarity<N2, D, R>) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).source§unsafe fn from_superset_unchecked(sim: &Similarity<N2, D, R>) -> Self
unsafe fn from_superset_unchecked(sim: &Similarity<N2, D, R>) -> Self
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.source§impl<N1, N2, D, C> SubsetOf<Transform<N2, D, C>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
C: SuperTCategoryOf<TAffine>,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D> + Allocator<N1, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N2, DimNameSum<D, U1>, DimNameSum<D, U1>>,
impl<N1, N2, D, C> SubsetOf<Transform<N2, D, C>> for Translation<N1, D>where
N1: Real,
N2: Real + SupersetOf<N1>,
C: SuperTCategoryOf<TAffine>,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D> + Allocator<N1, DimNameSum<D, U1>, DimNameSum<D, U1>> + Allocator<N2, DimNameSum<D, U1>, DimNameSum<D, U1>>,
source§fn to_superset(&self) -> Transform<N2, D, C>
fn to_superset(&self) -> Transform<N2, D, C>
The inclusion map: converts
self
to the equivalent element of its superset.source§fn is_in_subset(t: &Transform<N2, D, C>) -> bool
fn is_in_subset(t: &Transform<N2, D, C>) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).source§unsafe fn from_superset_unchecked(t: &Transform<N2, D, C>) -> Self
unsafe fn from_superset_unchecked(t: &Transform<N2, D, C>) -> Self
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.source§impl<N1, N2, D: DimName> SubsetOf<Translation<N2, D>> for Translation<N1, D>where
N1: Scalar,
N2: Scalar + SupersetOf<N1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D>,
impl<N1, N2, D: DimName> SubsetOf<Translation<N2, D>> for Translation<N1, D>where
N1: Scalar,
N2: Scalar + SupersetOf<N1>,
DefaultAllocator: Allocator<N1, D> + Allocator<N2, D>,
source§fn to_superset(&self) -> Translation<N2, D>
fn to_superset(&self) -> Translation<N2, D>
The inclusion map: converts
self
to the equivalent element of its superset.source§fn is_in_subset(rot: &Translation<N2, D>) -> bool
fn is_in_subset(rot: &Translation<N2, D>) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).source§unsafe fn from_superset_unchecked(rot: &Translation<N2, D>) -> Self
unsafe fn from_superset_unchecked(rot: &Translation<N2, D>) -> Self
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.source§impl<N: Real, D: DimName> Transformation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> Transformation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
source§impl<N: Real, D: DimName> Translation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> Translation<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
Subgroups of the n-dimensional translation group T(n)
.
source§fn from_vector(v: VectorN<N, D>) -> Option<Self>
fn from_vector(v: VectorN<N, D>) -> Option<Self>
Attempts to convert a vector to this translation. Returns
None
if the translation
represented by v
is not part of the translation subgroup represented by Self
. Read moresource§impl<N: Scalar + UlpsEq, D: DimName> UlpsEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
N::Epsilon: Copy,
impl<N: Scalar + UlpsEq, D: DimName> UlpsEq<Translation<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
N::Epsilon: Copy,
impl<N: Real, D: DimName> AbstractGroup<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> AbstractLoop<Multiplicative> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Scalar, D: DimName> Copy for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
Owned<N, D>: Copy,
impl<N: Real, D: DimName> DirectIsometry<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Scalar + Eq, D: DimName> Eq for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
impl<N: Real, D: DimName> Isometry<Point<N, D>> for Translation<N, D>where
DefaultAllocator: Allocator<N, D>,
Auto Trait Implementations§
impl<N, D> !RefUnwindSafe for Translation<N, D>
impl<N, D> !Send for Translation<N, D>
impl<N, D> !Sync for Translation<N, D>
impl<N, D> !Unpin for Translation<N, D>
impl<N, D> !UnwindSafe for Translation<N, D>
Blanket Implementations§
source§impl<T> Rand for Twhere
Standard: Distribution<T>,
impl<T> Rand for Twhere
Standard: Distribution<T>,
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.