Modifier and Type | Method | Description |
---|---|---|
default void |
AxisAngleReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Performs the inverse of the transform to the tuple
tupleOriginal by this orientation and
stores the result in tupleTransformed . |
default void |
AxisAngleReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Transforms the tuple
tupleOriginal by this orientation and stores the result in
tupleTransformed . |
Modifier and Type | Method | Description |
---|---|---|
void |
Matrix3D.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Performs the inverse of the transform to the given tuple
tupleOriginal by this matrix and
stores the result in tupleTransformed . |
Modifier and Type | Method | Description |
---|---|---|
default void |
Matrix3DReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed) |
Performs the inverse of the transform to the given tuple
tupleOriginal by this matrix and
stores the result in tupleTransformed . |
void |
Matrix3DReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Performs the inverse of the transform to the given tuple
tupleOriginal by this matrix and
stores the result in tupleTransformed . |
default void |
RotationMatrixReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed) |
Performs the inverse of the transform to the given tuple
tupleOriginal by this matrix and
stores the result in tupleTransformed . |
default void |
RotationMatrixReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Performs the inverse of the transform to the given tuple
tupleOriginal by this matrix and
stores the result in tupleTransformed . |
default void |
RotationScaleMatrixReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Performs the inverse of the transform to the given tuple
tupleOriginal by this matrix and
stores the result in tupleTransformed . |
default void |
Matrix3DReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed) |
Transforms the given tuple
tupleOriginal by this matrix and stores the result in
tupleTransformed . |
default void |
Matrix3DReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfRotationInXYPlane) |
Transforms the given tuple
tupleOriginal by this matrix and stores the result in
tupleTransformed . |
default void |
RotationMatrixReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed) |
Transforms the given tuple
tupleOriginal by this matrix and stores the result in
tupleTransformed . |
default void |
RotationMatrixReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Transforms the given tuple
tupleOriginal by this matrix and stores the result in
tupleTransformed . |
default void |
RotationScaleMatrixReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Transforms the given tuple
tupleOriginal by this matrix and stores the result in
tupleTransformed . |
Modifier and Type | Method | Description |
---|---|---|
default void |
Orientation3DReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed) |
Performs the inverse of the transform to the tuple
tupleOriginal by this orientation and
stores the result in tupleTransformed . |
void |
Orientation3DReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Performs the inverse of the transform to the tuple
tupleOriginal by this orientation and
stores the result in tupleTransformed . |
default void |
Orientation3DReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed) |
Transforms the tuple
tupleOriginal by this orientation and stores the result in
tupleTransformed . |
void |
Orientation3DReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Transforms the tuple
tupleOriginal by this orientation and stores the result in
tupleTransformed . |
Modifier and Type | Method | Description |
---|---|---|
static void |
RotationMatrixTools.applyYawRotation(double yaw,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed) |
Rotates the given
tupleOriginal by a rotation about the z-axis and stores the result in
tupleTransformed . |
static void |
EuclidCoreTestTools.assertTuple2DContainsOnlyNaN(java.lang.String messagePrefix,
Tuple2DReadOnly tupleToAssert) |
Asserts that the given tuple contains only
Double.NaN . |
static void |
EuclidCoreTestTools.assertTuple2DContainsOnlyNaN(Tuple2DReadOnly tupleToAssert) |
Asserts that the given tuple contains only
Double.NaN . |
static void |
EuclidCoreTestTools.assertTuple2DEquals(java.lang.String messagePrefix,
Tuple2DReadOnly expected,
Tuple2DReadOnly actual,
double epsilon) |
Asserts on a per component basis that the two tuples are equal to an
epsilon . |
static void |
EuclidCoreTestTools.assertTuple2DEquals(java.lang.String messagePrefix,
Tuple2DReadOnly expected,
Tuple2DReadOnly actual,
double epsilon,
java.lang.String format) |
Asserts on a per component basis that the two tuples are equal to an
epsilon . |
static void |
EuclidCoreTestTools.assertTuple2DEquals(Tuple2DReadOnly expected,
Tuple2DReadOnly actual,
double epsilon) |
Asserts on a per component basis that the two tuples are equal to an
epsilon . |
static void |
EuclidCoreTestTools.assertTuple2DIsSetToZero(java.lang.String messagePrefix,
Tuple2DReadOnly tupleToAssert) |
Assert that
Tuple2DBasics.setToZero() has just been called on the given tuple. |
static void |
EuclidCoreTestTools.assertTuple2DIsSetToZero(java.lang.String messagePrefix,
Tuple2DReadOnly tupleToAssert,
java.lang.String format) |
Assert that
Tuple2DBasics.setToZero() has just been called on the given tuple. |
static void |
EuclidCoreTestTools.assertTuple2DIsSetToZero(Tuple2DReadOnly tupleToAssert) |
Assert that
Tuple2DBasics.setToZero() has just been called on the given tuple. |
static boolean |
TupleTools.epsilonEquals(Tuple2DReadOnly tuple1,
Tuple2DReadOnly tuple2,
double epsilon) |
Tests on a per component basis if the two given tuples are equal to an
epsilon . |
static Vector2D |
EuclidCoreRandomTools.generateRandomVector2D(java.util.Random random,
Tuple2DReadOnly minMax) |
Deprecated.
|
static Vector2D |
EuclidCoreRandomTools.generateRandomVector2D(java.util.Random random,
Tuple2DReadOnly min,
Tuple2DReadOnly max) |
Deprecated.
|
static java.lang.String |
EuclidCoreIOTools.getTuple2DString(java.lang.String format,
Tuple2DReadOnly tuple) |
Gets a representative
String of tuple given a specific format to use. |
static java.lang.String |
EuclidCoreIOTools.getTuple2DString(Tuple2DReadOnly tuple) |
Gets a representative
String of tuple as follows: |
static void |
AxisAngleTools.inverseTransform(AxisAngleReadOnly axisAngle,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Performs the inverse of the transform of the tuple
tupleOriginal using axisAngle
and stores the result in tupleTransformed . |
static void |
Matrix3DTools.inverseTransform(Matrix3DReadOnly matrix,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Undoes the transformation of
tupleOriginal using the given matrix and stores the result
in tupleTransformed : |
static void |
QuaternionTools.inverseTransform(QuaternionReadOnly quaternion,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Performs the inverse of the transform of the tuple
tupleOriginal using quaternion
and stores the result in tupleTransformed . |
static Vector2D |
EuclidCoreRandomTools.nextVector2D(java.util.Random random,
Tuple2DReadOnly minMax) |
Generates a random 2D vector.
|
static Vector2D |
EuclidCoreRandomTools.nextVector2D(java.util.Random random,
Tuple2DReadOnly min,
Tuple2DReadOnly max) |
Generates a random 2D vector.
|
static void |
EuclidCoreRandomTools.randomizeTuple2D(java.util.Random random,
Tuple2DReadOnly minMax,
Tuple2DBasics tupleToRandomize) |
Randomizes a 2D tuple.
|
static void |
EuclidCoreRandomTools.randomizeTuple2D(java.util.Random random,
Tuple2DReadOnly min,
Tuple2DReadOnly max,
Tuple2DBasics tupleToRandomize) |
Randomizes a 2D tuple.
|
static void |
AxisAngleTools.transform(AxisAngleReadOnly axisAngle,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Transforms the tuple
tupleOriginal using axisAngle and stores the result in
tupleTransformed . |
static void |
Matrix3DTools.transform(Matrix3DReadOnly matrix,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Performs a transformation of
tupleOriginal using the given matrix and stores the result
in tupleTransformed : |
static void |
QuaternionTools.transform(QuaternionReadOnly quaternion,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Transforms the tuple
tupleOriginal using quaternion and stores the result in
tupleTransformed . |
Modifier and Type | Class | Description |
---|---|---|
class |
Point2D |
A 2D point represents the 2D coordinates of a location on the XY-plane.
|
class |
Point2D32 |
A 2D point represents the 2D coordinates of a location on the XY-plane.
|
class |
Vector2D |
A 2D vector represents a physical quantity with a magnitude and a direction in the XY-plane.
|
class |
Vector2D32 |
A 2D vector represents a physical quantity with a magnitude and a direction in the XY-plane.
|
Constructor | Description |
---|---|
Point2D(Tuple2DReadOnly other) |
Creates a new point and initializes it to
other . |
Point2D32(Tuple2DReadOnly other) |
Creates a new point and initializes it to
other . |
Vector2D(Tuple2DReadOnly other) |
Creates a new vector and initializes it to
other . |
Vector2D32(Tuple2DReadOnly other) |
Creates a new vector and initializes it to
other . |
Modifier and Type | Interface | Description |
---|---|---|
interface |
Point2DBasics |
Write and read interface for a 2 dimensional point.
|
interface |
Point2DReadOnly |
Read-only interface for a 2 dimensional point.
|
interface |
Tuple2DBasics |
Write and read interface for a 2 dimensional tuple.
|
interface |
Vector2DBasics |
Write and read interface for a 2 dimensional vector.
|
interface |
Vector2DReadOnly |
Read-only interface for a 2 dimensional vector.
|
Modifier and Type | Method | Description |
---|---|---|
default void |
Tuple2DBasics.add(Tuple2DReadOnly other) |
Adds the given tuple to this tuple.
|
default void |
Tuple2DBasics.add(Tuple2DReadOnly tuple1,
Tuple2DReadOnly tuple2) |
Sets this tuple to the sum of the two given tuples.
|
default double |
Vector2DReadOnly.cross(Tuple2DReadOnly tuple) |
Calculates and returns the value of the cross product of this vector with
tuple . |
static double |
Vector2DReadOnly.cross(Tuple2DReadOnly tuple1,
Tuple2DReadOnly tuple2) |
Calculates and returns the value of the cross product of
tuple1 with tuple2 . |
default boolean |
Tuple2DReadOnly.epsilonEquals(Tuple2DReadOnly other,
double epsilon) |
Tests on a per component basis if this tuple is equal to the given
other to an
epsilon . |
default boolean |
Tuple2DReadOnly.equals(Tuple2DReadOnly other) |
Tests on a per component basis, if this tuple is exactly equal to
other . |
default void |
Tuple2DBasics.interpolate(Tuple2DReadOnly other,
double alpha) |
Performs a linear interpolation from this tuple to
other given the percentage
alpha . |
default void |
Tuple2DBasics.interpolate(Tuple2DReadOnly tuple1,
Tuple2DReadOnly tuple2,
double alpha) |
Performs a linear interpolation from
tuple1 to tuple2 given the percentage
alpha . |
default void |
Tuple2DBasics.scaleAdd(double scalar,
Tuple2DReadOnly other) |
Scales this tuple and adds
other . |
default void |
Tuple2DBasics.scaleAdd(double scalar,
Tuple2DReadOnly tuple1,
Tuple2DReadOnly tuple2) |
Sets this tuple to the sum of
tuple1 scaled and tuple2 . |
default void |
Tuple2DBasics.scaleSub(double scalar,
Tuple2DReadOnly other) |
Scales this tuple and subtracts
other . |
default void |
Tuple2DBasics.scaleSub(double scalar,
Tuple2DReadOnly tuple1,
Tuple2DReadOnly tuple2) |
Sets this tuple to the difference of
tuple1 scaled and tuple2 . |
default void |
Tuple2DBasics.set(Tuple2DReadOnly other) |
Sets this tuple to
other . |
default void |
Tuple2DBasics.setAndAbsolute(Tuple2DReadOnly other) |
Sets this tuple to
other and then calls Tuple2DBasics.absolute() . |
default void |
Tuple2DBasics.setAndClipToMax(double max,
Tuple2DReadOnly other) |
Sets this tuple to
other and then calls Tuple2DBasics.clipToMax(double) . |
default void |
Tuple2DBasics.setAndClipToMin(double min,
Tuple2DReadOnly other) |
Sets this tuple to
other and then calls Tuple2DBasics.clipToMin(double) . |
default void |
Tuple2DBasics.setAndClipToMinMax(double min,
double max,
Tuple2DReadOnly other) |
Sets this tuple to
other and then calls Tuple2DBasics.clipToMinMax(double, double) . |
default void |
Tuple2DBasics.setAndNegate(Tuple2DReadOnly other) |
Sets this tuple to
other and then calls Tuple2DBasics.negate() . |
default void |
Tuple2DBasics.setAndScale(double scalar,
Tuple2DReadOnly other) |
Sets this tuple to
other and then scales it Tuple2DBasics.scale(double) . |
default void |
Tuple2DBasics.sub(Tuple2DReadOnly tupleReadOnly) |
Subtracts the given tuple to this tuple.
|
default void |
Tuple2DBasics.sub(Tuple2DReadOnly tuple1,
Tuple2DReadOnly tuple2) |
Sets this tuple to the difference of the two given tuples.
|
Constructor | Description |
---|---|
Point3D(Tuple2DReadOnly tuple2DReadOnly) |
Creates a new point and initializes its x and y components to
tuple2DReadOnly . |
Vector3D(Tuple2DReadOnly tuple2DReadOnly) |
Creates a new vector and initializes its x and y components to
tuple2DReadOnly . |
Modifier and Type | Method | Description |
---|---|---|
default void |
Tuple3DBasics.set(Tuple2DReadOnly tuple2DReadOnly) |
Sets the x and y components of this tuple with the x and y components of the given
tuple2DReadOnly . |
default void |
Tuple3DBasics.set(Tuple2DReadOnly tuple2DReadOnly,
double z) |
Sets the x and y components of this tuple with the x and y components of the given
tuple2DReadOnly and the z-component to the given z . |
Modifier and Type | Method | Description |
---|---|---|
default void |
QuaternionReadOnly.inverseTransform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Performs the inverse of the transform to the tuple
tupleOriginal by this orientation and
stores the result in tupleTransformed . |
default void |
QuaternionReadOnly.transform(Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfOrientation2D) |
Transforms the tuple
tupleOriginal by this orientation and stores the result in
tupleTransformed . |