Class PolyhedronsSet.TranslationTransform
java.lang.Object
org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet.TranslationTransform
- All Implemented Interfaces:
Transform<Euclidean3D,
Euclidean2D>
- Enclosing class:
PolyhedronsSet
private static class PolyhedronsSet.TranslationTransform
extends Object
implements Transform<Euclidean3D,Euclidean2D>
3D translation as a transform.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Plane
Cached original hyperplane.private Transform
<Euclidean2D, Euclidean1D> Cached 2D transform valid inside the cached original hyperplane.private Vector3D
Translation vector. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(Hyperplane<Euclidean3D> hyperplane) Transform an hyperplane of a space.apply
(SubHyperplane<Euclidean2D> sub, Hyperplane<Euclidean3D> original, Hyperplane<Euclidean3D> transformed) Transform a sub-hyperplane embedded in an hyperplane.apply
(Point<Euclidean3D> point) Transform a point of a space.
-
Field Details
-
translation
Translation vector. -
cachedOriginal
Cached original hyperplane. -
cachedTransform
Cached 2D transform valid inside the cached original hyperplane.
-
-
Constructor Details
-
TranslationTransform
TranslationTransform(Vector3D translation) Build a translation transform.- Parameters:
translation
- translation vector
-
-
Method Details
-
apply
Transform a point of a space.- Specified by:
apply
in interfaceTransform<Euclidean3D,
Euclidean2D> - Parameters:
point
- point to transform- Returns:
- a new object representing the transformed point
-
apply
Transform an hyperplane of a space.- Specified by:
apply
in interfaceTransform<Euclidean3D,
Euclidean2D> - Parameters:
hyperplane
- hyperplane to transform- Returns:
- a new object representing the transformed hyperplane
-
apply
public SubHyperplane<Euclidean2D> apply(SubHyperplane<Euclidean2D> sub, Hyperplane<Euclidean3D> original, Hyperplane<Euclidean3D> transformed) Transform a sub-hyperplane embedded in an hyperplane.- Specified by:
apply
in interfaceTransform<Euclidean3D,
Euclidean2D> - Parameters:
sub
- sub-hyperplane to transformoriginal
- hyperplane in which the sub-hyperplane is defined (this is the original hyperplane, the transform has not been applied to it)transformed
- hyperplane in which the sub-hyperplane is defined (this is the transformed hyperplane, the transform has been applied to it)- Returns:
- a new object representing the transformed sub-hyperplane
-