Clearable
, Point3DReadOnly
, Transformable
, Tuple3DBasics
, Tuple3DReadOnly
public interface Point3DBasics extends Tuple3DBasics, Point3DReadOnly, Transformable
A 3D point represents the 3D coordinates of a location in space.
Although a point and vector hold onto the same type of information, the distinction is made between them as they represent different geometry objects and are typically not handled the same way:
Modifier and Type | Method | Description |
---|---|---|
default void |
applyInverseTransform(Transform transform) |
Transforms this point by the inverse of the given
transform . |
default void |
applyTransform(Transform transform) |
Transforms this point by the given
transform . |
distance, distanceFromOrigin, distanceFromOriginSquared, distanceSquared, distanceXY, distanceXY, distanceXYSquared, distanceXYSquared, geometricallyEquals
absolute, add, add, add, addX, addY, addZ, clipToMax, clipToMin, clipToMinMax, containsNaN, interpolate, interpolate, negate, scale, scale, scaleAdd, scaleAdd, scaleSub, scaleSub, set, set, set, set, set, set, set, set, set, set, set, setAndAbsolute, setAndClipToMax, setAndClipToMin, setAndClipToMinMax, setAndNegate, setAndScale, setElement, setToNaN, setToZero, setX, setY, setZ, sub, sub, sub, subX, subY, subZ
epsilonEquals, equals, get, get, get, get, get, get, get, getElement, getElement32, getX, getX32, getY, getY32, getZ, getZ32
default void applyTransform(Transform transform)
transform
.
The transformation depends on the implementation of the transform, here are a few examples:
RigidBodyTransform
rotates then translates a point.
QuaternionBasedTransform
rotates then translates a point.
AffineTransform
scales, rotates, then translates a point.
applyTransform
in interface Transformable
transform
- the geometric transform to apply on this point. Not modified.default void applyInverseTransform(Transform transform)
transform
.
The transformation depends on the implementation of the transform, here are a few examples:
RigidBodyTransform
rotates then translates a point.
QuaternionBasedTransform
rotates then translates a point.
AffineTransform
scales, rotates, then translates a point.
applyInverseTransform
in interface Transformable
transform
- the geometric transform to apply on this point. Not modified.