Class PolyhedronsSet.RotationTransform
java.lang.Object
org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet.RotationTransform
- All Implemented Interfaces:
Transform<Euclidean3D,
Euclidean2D>
- Enclosing class:
PolyhedronsSet
private static class PolyhedronsSet.RotationTransform
extends Object
implements Transform<Euclidean3D,Euclidean2D>
3D rotation 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
Center point of the rotation.private Rotation
Vectorial rotation. -
Constructor Summary
ConstructorsConstructorDescriptionRotationTransform
(Vector3D center, Rotation rotation) Build a rotation transform. -
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
-
center
Center point of the rotation. -
rotation
Vectorial rotation. -
cachedOriginal
Cached original hyperplane. -
cachedTransform
Cached 2D transform valid inside the cached original hyperplane.
-
-
Constructor Details
-
RotationTransform
Build a rotation transform.- Parameters:
center
- center point of the rotationrotation
- vectorial rotation
-
-
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
-