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 java.lang.Object implements Transform<Euclidean3D,Euclidean2D>
3D translation as a transform.
-
-
Field Summary
Fields Modifier and Type Field Description private Plane
cachedOriginal
Cached original hyperplane.private Transform<Euclidean2D,Euclidean1D>
cachedTransform
Cached 2D transform valid inside the cached original hyperplane.private Vector3D
translation
Translation vector.
-
Constructor Summary
Constructors Constructor Description TranslationTransform(Vector3D translation)
Build a translation transform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plane
apply(Hyperplane<Euclidean3D> hyperplane)
Transform an hyperplane of a space.SubHyperplane<Euclidean2D>
apply(SubHyperplane<Euclidean2D> sub, Hyperplane<Euclidean3D> original, Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.Vector3D
apply(Point<Euclidean3D> point)
Transform a point of a space.
-
-
-
Field Detail
-
translation
private Vector3D translation
Translation vector.
-
cachedOriginal
private Plane cachedOriginal
Cached original hyperplane.
-
cachedTransform
private Transform<Euclidean2D,Euclidean1D> cachedTransform
Cached 2D transform valid inside the cached original hyperplane.
-
-
Constructor Detail
-
TranslationTransform
TranslationTransform(Vector3D translation)
Build a translation transform.- Parameters:
translation
- translation vector
-
-
Method Detail
-
apply
public Vector3D apply(Point<Euclidean3D> point)
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
public Plane apply(Hyperplane<Euclidean3D> hyperplane)
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
-
-