public interface FramePoint2DBasics extends FixedFramePoint2DBasics, FrameTuple2DBasics, FrameChangeable
In addition to representing a Point2DBasics
, a ReferenceFrame
is associated to a
FramePoint2DBasics
. This allows, for instance, to enforce, at runtime, that operations on
points occur in the same coordinate system.
Because a FramePoint2DBasics
extends Point2DBasics
, it is compatible with methods
only requiring Point2DBasics
. However, these methods do NOT assert that the operation
occur in the proper coordinate system. Use this feature carefully and always prefer using methods
requiring FramePoint2DBasics
.
Modifier and Type | Method and Description |
---|---|
void |
changeFrameAndProjectToXYPlane(ReferenceFrame desiredFrame)
Performs a transformation of the point such that it is expressed in a new frame
desireFrame . |
setFromReferenceFrame
distance, distanceSquared, distanceXY, distanceXYSquared, geometricallyEquals
applyInverseTransform, applyInverseTransform, applyTransform, applyTransform
distance, distanceFromOrigin, distanceFromOriginSquared, distanceSquared, distanceXY, distanceXYSquared, geometricallyEquals
setIncludingFrame, setIncludingFrame, setIncludingFrame, setIncludingFrame, setIncludingFrame, setIncludingFrame, setIncludingFrame, setIncludingFrame, setIncludingFrame, setIncludingFrame, setReferenceFrame, setToNaN, setToZero
add, add, add, add, interpolate, interpolate, interpolate, interpolate, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleSub, scaleSub, scaleSub, scaleSub, set, set, set, set, setAndAbsolute, setAndClipToMax, setAndClipToMin, setAndClipToMinMax, setAndNegate, setAndScale, setMatchingFrame, sub, sub, sub, sub
epsilonEquals, equals
checkReferenceFrameMatch, checkReferenceFrameMatch, getReferenceFrame
absolute, add, add, add, addX, addY, clipToMax, clipToMin, clipToMinMax, containsNaN, interpolate, interpolate, negate, scale, scale, scaleAdd, scaleAdd, scaleSub, scaleSub, set, set, set, set, set, set, set, set, set, set, setAndAbsolute, setAndClipToMax, setAndClipToMin, setAndClipToMinMax, setAndNegate, setAndScale, setElement, setToNaN, setToZero, setX, setY, sub, sub, sub, subX, subY
epsilonEquals, equals, get, get, get, get, get, get, get, getElement, getElement32, getX, getX32, getY, getY32
changeFrame, setReferenceFrame
void changeFrameAndProjectToXYPlane(ReferenceFrame desiredFrame)
desireFrame
.
Because the transformation between two reference frames is a 3D transformation, the result of transforming this point 2D can result in a point 3D. This method projects the result of the transformation onto the XY-plane.
desiredFrame
- the reference frame in which the point is to be expressed.