public abstract class EuclidCoreRandomTools
extends java.lang.Object
The main application is for writing JUnit Tests.
Constructor | Description |
---|---|
EuclidCoreRandomTools() |
Modifier and Type | Method | Description |
---|---|---|
static AffineTransform |
generateRandomAffineTransform(java.util.Random random) |
Deprecated.
Use
nextAffineTransform(Random) instead |
static AxisAngle |
generateRandomAxisAngle(java.util.Random random) |
Deprecated.
Use
nextAxisAngle(Random) instead |
static AxisAngle |
generateRandomAxisAngle(java.util.Random random,
double minMaxAngle) |
Deprecated.
Use
nextAxisAngle(Random,double) instead |
static AxisAngle32 |
generateRandomAxisAngle32(java.util.Random random) |
Deprecated.
Use
nextAxisAngle32(Random) instead |
static AxisAngle32 |
generateRandomAxisAngle32(java.util.Random random,
double minMaxAngle) |
Deprecated.
Use
nextAxisAngle32(Random,double) instead |
static Matrix3D |
generateRandomDiagonalMatrix3D(java.util.Random random) |
Deprecated.
Use
nextDiagonalMatrix3D(Random) instead |
static Matrix3D |
generateRandomDiagonalMatrix3D(java.util.Random random,
double minMaxValue) |
Deprecated.
Use
nextDiagonalMatrix3D(Random,double) instead |
static Matrix3D |
generateRandomDiagonalMatrix3D(java.util.Random random,
double minValue,
double maxValue) |
Deprecated.
Use
nextDiagonalMatrix3D(Random,double,double) instead |
static double |
generateRandomDouble(java.util.Random random) |
Deprecated.
Use
nextDouble(Random) instead |
static double |
generateRandomDouble(java.util.Random random,
double minMaxValue) |
Deprecated.
Use
nextDouble(Random,double) instead |
static double |
generateRandomDouble(java.util.Random random,
double minValue,
double maxValue) |
Deprecated.
Use
nextDouble(Random,double,double) instead |
static Matrix3D |
generateRandomMatrix3D(java.util.Random random) |
Deprecated.
Use
nextMatrix3D(Random) instead |
static Matrix3D |
generateRandomMatrix3D(java.util.Random random,
double minMaxValue) |
Deprecated.
Use
nextMatrix3D(Random,double) instead |
static Matrix3D |
generateRandomMatrix3D(java.util.Random random,
double minValue,
double maxValue) |
Deprecated.
Use
nextMatrix3D(Random,double,double) instead |
static Vector3D |
generateRandomOrthogonalVector3D(java.util.Random random,
Vector3DReadOnly vectorToBeOrthogonalTo,
boolean normalize) |
Deprecated.
|
static Point2D |
generateRandomPoint2D(java.util.Random random) |
Deprecated.
Use
nextPoint2D(Random) instead |
static Point2D |
generateRandomPoint2D(java.util.Random random,
double minMax) |
Deprecated.
Use
nextPoint2D(Random,double) instead |
static Point2D |
generateRandomPoint2D(java.util.Random random,
double min,
double max) |
Deprecated.
Use
nextPoint2D(Random,double,double) instead |
static Point2D |
generateRandomPoint2D(java.util.Random random,
double minX,
double maxX,
double minY,
double maxY) |
Deprecated.
Use
nextPoint2D(Random,double,double,double,double) instead |
static Point2D32 |
generateRandomPoint2D32(java.util.Random random) |
Deprecated.
Use
nextPoint2D32(Random) instead |
static Point3D |
generateRandomPoint3D(java.util.Random random) |
Deprecated.
Use
nextPoint3D(Random) instead |
static Point3D |
generateRandomPoint3D(java.util.Random random,
double minMax) |
Deprecated.
Use
nextPoint3D(Random,double) instead |
static Point3D |
generateRandomPoint3D(java.util.Random random,
double min,
double max) |
Deprecated.
Use
nextPoint3D(Random,double,double) instead |
static Point3D |
generateRandomPoint3D(java.util.Random random,
double maxAbsoluteX,
double maxAbsoluteY,
double maxAbsoluteZ) |
Deprecated.
Use
nextPoint3D(Random,double,double,double) instead |
static Point3D |
generateRandomPoint3D(java.util.Random random,
double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ) |
Deprecated.
|
static Point3D32 |
generateRandomPoint3D32(java.util.Random random) |
Deprecated.
Use
nextPoint3D32(Random) instead |
static Quaternion |
generateRandomQuaternion(java.util.Random random) |
Deprecated.
Use
nextQuaternion(Random) instead |
static Quaternion |
generateRandomQuaternion(java.util.Random random,
double minMaxAngle) |
Deprecated.
Use
nextQuaternion(Random,double) instead |
static Quaternion32 |
generateRandomQuaternion32(java.util.Random random) |
Deprecated.
Use
nextQuaternion32(Random) instead |
static Quaternion32 |
generateRandomQuaternion32(java.util.Random random,
double minMaxAngleRange) |
Deprecated.
Use
nextQuaternion32(Random,double) instead |
static QuaternionBasedTransform |
generateRandomQuaternionBasedTransform(java.util.Random random) |
Deprecated.
Use
nextQuaternionBasedTransform(Random) instead |
static RigidBodyTransform |
generateRandomRigidBodyTransform(java.util.Random random) |
Deprecated.
Use
nextRigidBodyTransform(Random) instead |
static RigidBodyTransform |
generateRandomRigidBodyTransform2D(java.util.Random random) |
Deprecated.
Use
nextRigidBodyTransform2D(Random) instead |
static RotationMatrix |
generateRandomRotationMatrix(java.util.Random random) |
Deprecated.
Use
nextRotationMatrix(Random) instead |
static RotationMatrix |
generateRandomRotationMatrix(java.util.Random random,
double minMaxAngle) |
Deprecated.
Use
nextRotationMatrix(Random,double) instead |
static RotationScaleMatrix |
generateRandomRotationScaleMatrix(java.util.Random random,
double maxScale) |
Deprecated.
Use
nextRotationScaleMatrix(Random,double) instead |
static RotationScaleMatrix |
generateRandomRotationScaleMatrix(java.util.Random random,
double minMaxAngle,
double maxScale) |
Deprecated.
Use
nextRotationScaleMatrix(Random,double,double) instead |
static Vector3D |
generateRandomRotationVector(java.util.Random random) |
Deprecated.
Use
nextRotationVector(Random) instead |
static Vector3D |
generateRandomRotationVector(java.util.Random random,
double minMaxAngle) |
Deprecated.
Use
nextRotationVector(Random,double) instead |
static Vector2D |
generateRandomVector2D(java.util.Random random) |
Deprecated.
Use
nextVector2D(Random) instead |
static Vector2D |
generateRandomVector2D(java.util.Random random,
double min,
double max) |
Deprecated.
Use
nextVector2D(Random,double,double) instead |
static Vector2D |
generateRandomVector2D(java.util.Random random,
Tuple2DReadOnly minMax) |
Deprecated.
Use
nextVector2D(Random,Tuple2DReadOnly) instead |
static Vector2D |
generateRandomVector2D(java.util.Random random,
Tuple2DReadOnly min,
Tuple2DReadOnly max) |
Deprecated.
|
static Vector2D32 |
generateRandomVector2D32(java.util.Random random) |
Deprecated.
Use
nextVector2D32(Random) instead |
static Vector2D |
generateRandomVector2DWithFixedLength(java.util.Random random,
double length) |
Deprecated.
Use
nextVector2DWithFixedLength(Random,double) instead |
static Vector3D |
generateRandomVector3D(java.util.Random random) |
Deprecated.
Use
nextVector3D(Random) instead |
static Vector3D |
generateRandomVector3D(java.util.Random random,
double min,
double max) |
Deprecated.
Use
nextVector3D(Random,double,double) instead |
static Vector3D |
generateRandomVector3D(java.util.Random random,
double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ) |
Deprecated.
|
static Vector3D |
generateRandomVector3D(java.util.Random random,
Tuple3DReadOnly minMax) |
Deprecated.
Use
nextVector3D(Random,Tuple3DReadOnly) instead |
static Vector3D |
generateRandomVector3D(java.util.Random random,
Tuple3DReadOnly min,
Tuple3DReadOnly max) |
Deprecated.
|
static Vector3D32 |
generateRandomVector3D32(java.util.Random random) |
Deprecated.
Use
nextVector3D32(Random) instead |
static Vector3D |
generateRandomVector3DWithFixedLength(java.util.Random random,
double length) |
Deprecated.
Use
nextVector3DWithFixedLength(Random,double) instead |
static Vector4D |
generateRandomVector4D(java.util.Random random) |
Deprecated.
Use
nextVector4D(Random) instead |
static Vector4D32 |
generateRandomVector4D32(java.util.Random random) |
Deprecated.
Use
nextVector4D32(Random) instead |
static double[] |
generateRandomYawPitchRoll(java.util.Random random) |
Deprecated.
Use
nextYawPitchRoll(Random) instead |
static double[] |
generateRandomYawPitchRoll(java.util.Random random,
double minMaxYaw,
double minMaxPitch,
double minMaxRoll) |
Deprecated.
Use
nextYawPitchRoll(Random,double,double,double) instead |
static AffineTransform |
nextAffineTransform(java.util.Random random) |
Generates a random affine transform.
|
static AxisAngle |
nextAxisAngle(java.util.Random random) |
Generates a random axis-angle.
|
static AxisAngle |
nextAxisAngle(java.util.Random random,
double minMaxAngle) |
Generates a random axis-angle.
|
static AxisAngle32 |
nextAxisAngle32(java.util.Random random) |
Generates a random axis-angle.
|
static AxisAngle32 |
nextAxisAngle32(java.util.Random random,
double minMaxAngle) |
Generates a random axis-angle.
|
static Matrix3D |
nextDiagonalMatrix3D(java.util.Random random) |
Generates a random diagonal 3-by-3 matrix.
|
static Matrix3D |
nextDiagonalMatrix3D(java.util.Random random,
double minMaxValue) |
Generates a random diagonal 3-by-3 matrix.
|
static Matrix3D |
nextDiagonalMatrix3D(java.util.Random random,
double minValue,
double maxValue) |
Generates a random diagonal 3-by-3 matrix.
|
static double |
nextDouble(java.util.Random random) |
Generates a random double ∈ [-1.0; 1.0].
|
static double |
nextDouble(java.util.Random random,
double minMaxValue) |
Generates a random double ∈ [-
minMax ; minMax ]. |
static double |
nextDouble(java.util.Random random,
double minValue,
double maxValue) |
Generates a random double ∈ [
minValue ; maxValue ]. |
static Matrix3D |
nextMatrix3D(java.util.Random random) |
Generates a random 3-by-3 matrix.
|
static Matrix3D |
nextMatrix3D(java.util.Random random,
double minMaxValue) |
Generates a random 3-by-3 matrix.
|
static Matrix3D |
nextMatrix3D(java.util.Random random,
double minValue,
double maxValue) |
Generates a random 3-by-3 matrix.
|
static Vector3D |
nextOrthogonalVector3D(java.util.Random random,
Vector3DReadOnly vectorToBeOrthogonalTo,
boolean normalize) |
Generates a random vector that is perpendicular to
vectorToBeOrthogonalTo . |
static Point2D |
nextPoint2D(java.util.Random random) |
Generates a random 2D point.
|
static Point2D |
nextPoint2D(java.util.Random random,
double minMax) |
Generates a random 2D point.
|
static Point2D |
nextPoint2D(java.util.Random random,
double min,
double max) |
Generates a random point.
|
static Point2D |
nextPoint2D(java.util.Random random,
double minX,
double maxX,
double minY,
double maxY) |
Generates a random point.
|
static Point2D32 |
nextPoint2D32(java.util.Random random) |
Generates a random 2D point.
|
static Point3D |
nextPoint3D(java.util.Random random) |
Generates a random point.
|
static Point3D |
nextPoint3D(java.util.Random random,
double minMax) |
Generates a random point.
|
static Point3D |
nextPoint3D(java.util.Random random,
double min,
double max) |
Generates a random point.
|
static Point3D |
nextPoint3D(java.util.Random random,
double maxAbsoluteX,
double maxAbsoluteY,
double maxAbsoluteZ) |
Generates a random point.
|
static Point3D |
nextPoint3D(java.util.Random random,
double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ) |
Generates a random point.
|
static Point3D32 |
nextPoint3D32(java.util.Random random) |
Generates a random point.
|
static Quaternion |
nextQuaternion(java.util.Random random) |
Generates a random quaternion uniformly distributed on the unit-sphere.
|
static Quaternion |
nextQuaternion(java.util.Random random,
double minMaxAngle) |
Generates a random quaternion uniformly distributed on the unit-sphere.
|
static Quaternion32 |
nextQuaternion32(java.util.Random random) |
Generates a random quaternion uniformly distributed on the unit-sphere.
|
static Quaternion32 |
nextQuaternion32(java.util.Random random,
double minMaxAngleRange) |
Generates a random quaternion uniformly distributed on the unit-sphere.
|
static QuaternionBasedTransform |
nextQuaternionBasedTransform(java.util.Random random) |
Generates a random quaternion-based transform.
|
static RigidBodyTransform |
nextRigidBodyTransform(java.util.Random random) |
Generates a random rigid-body transform.
|
static RigidBodyTransform |
nextRigidBodyTransform2D(java.util.Random random) |
Generates a random rigid-body transform with the rotation part being a transform in the XY
plane.
|
static RotationMatrix |
nextRotationMatrix(java.util.Random random) |
Generates a random rotation matrix uniformly distributed on the unit sphere and describes an
rotation angle in [-pi; pi].
|
static RotationMatrix |
nextRotationMatrix(java.util.Random random,
double minMaxAngle) |
Generates a random rotation matrix uniformly distributed on the unit sphere and describes an
rotation angle in [-
minMaxAngle ; minMaxAngle ]. |
static RotationScaleMatrix |
nextRotationScaleMatrix(java.util.Random random,
double maxScale) |
Generates a random rotation-scale matrix.
|
static RotationScaleMatrix |
nextRotationScaleMatrix(java.util.Random random,
double minMaxAngle,
double maxScale) |
Generates a random rotation-scale matrix.
|
static Vector3D |
nextRotationVector(java.util.Random random) |
Generates a random rotation vector.
|
static Vector3D |
nextRotationVector(java.util.Random random,
double minMaxAngle) |
Generates a random rotation vector.
|
static Vector2D |
nextVector2D(java.util.Random random) |
Generates a random 2D vector.
|
static Vector2D |
nextVector2D(java.util.Random random,
double min,
double max) |
Generates a random vector.
|
static Vector2D |
nextVector2D(java.util.Random random,
Tuple2DReadOnly minMax) |
Generates a random 2D vector.
|
static Vector2D |
nextVector2D(java.util.Random random,
Tuple2DReadOnly min,
Tuple2DReadOnly max) |
Generates a random 2D vector.
|
static Vector2D32 |
nextVector2D32(java.util.Random random) |
Generates a random 2D vector.
|
static Vector2D |
nextVector2DWithFixedLength(java.util.Random random,
double length) |
Generates a random 2D vector given its length
length . |
static Vector3D |
nextVector3D(java.util.Random random) |
Generates a random vector.
|
static Vector3D |
nextVector3D(java.util.Random random,
double min,
double max) |
Generates a random vector.
|
static Vector3D |
nextVector3D(java.util.Random random,
double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ) |
Generates a random vector.
|
static Vector3D |
nextVector3D(java.util.Random random,
Tuple3DReadOnly minMax) |
Generates a random vector.
|
static Vector3D |
nextVector3D(java.util.Random random,
Tuple3DReadOnly min,
Tuple3DReadOnly max) |
Generates a random vector.
|
static Vector3D32 |
nextVector3D32(java.util.Random random) |
Generates a random vector.
|
static Vector3D |
nextVector3DWithFixedLength(java.util.Random random,
double length) |
Generates a random vector given its length
length . |
static Vector4D |
nextVector4D(java.util.Random random) |
Generates a random 4D vector.
|
static Vector4D32 |
nextVector4D32(java.util.Random random) |
Generates a random 4D vector.
|
static double[] |
nextYawPitchRoll(java.util.Random random) |
Generates random yaw-pitch-roll angles and returns it in an array.
|
static double[] |
nextYawPitchRoll(java.util.Random random,
double minMaxYaw,
double minMaxPitch,
double minMaxRoll) |
Generates random yaw-pitch-roll angles and returns it in an array.
|
static void |
randomizeAxisAngle(java.util.Random random,
double minMaxAngle,
AxisAngleBasics axisAngleToRandomize) |
Randomizes the given axis-angle.
|
static void |
randomizeAxisAngle(java.util.Random random,
AxisAngleBasics axisAngleToRandomize) |
Randomizes the given axis-angle.
|
static void |
randomizeTuple2D(java.util.Random random,
Tuple2DBasics tupleToRandomize) |
Randomizes a 2D tuple.
|
static void |
randomizeTuple2D(java.util.Random random,
Tuple2DReadOnly minMax,
Tuple2DBasics tupleToRandomize) |
Randomizes a 2D tuple.
|
static void |
randomizeTuple2D(java.util.Random random,
Tuple2DReadOnly min,
Tuple2DReadOnly max,
Tuple2DBasics tupleToRandomize) |
Randomizes a 2D tuple.
|
static void |
randomizeTuple3D(java.util.Random random,
Tuple3DBasics tupleToRandomize) |
Randomizes a tuple.
|
static void |
randomizeTuple3D(java.util.Random random,
Tuple3DReadOnly minMax,
Tuple3DBasics tupleToRandomize) |
Randomizes a tuple.
|
static void |
randomizeTuple3D(java.util.Random random,
Tuple3DReadOnly min,
Tuple3DReadOnly max,
Tuple3DBasics tupleToRandomize) |
Randomizes a tuple.
|
@Deprecated public static double[] generateRandomYawPitchRoll(java.util.Random random)
nextYawPitchRoll(Random)
instead
random
- the random generator to use.public static double[] nextYawPitchRoll(java.util.Random random)
random
- the random generator to use.@Deprecated public static double[] generateRandomYawPitchRoll(java.util.Random random, double minMaxYaw, double minMaxPitch, double minMaxRoll)
nextYawPitchRoll(Random,double,double,double)
instead
minMaxYaw
; minMaxYaw
],
minMaxPitch
; minMaxPitch
],
minMaxRoll
; minMaxRoll
],
random
- the random generator to use.minMaxYaw
- the maximum absolute angle for the generated yaw angle.minMaxPitch
- the maximum absolute angle for the generated pitch angle.minMaxRoll
- the maximum absolute angle for the generated roll angle.java.lang.RuntimeException
- if minMaxYaw < 0
, minMaxPitch < 0
,
minMaxRoll < 0
.public static double[] nextYawPitchRoll(java.util.Random random, double minMaxYaw, double minMaxPitch, double minMaxRoll)
minMaxYaw
; minMaxYaw
],
minMaxPitch
; minMaxPitch
],
minMaxRoll
; minMaxRoll
],
random
- the random generator to use.minMaxYaw
- the maximum absolute angle for the generated yaw angle.minMaxPitch
- the maximum absolute angle for the generated pitch angle.minMaxRoll
- the maximum absolute angle for the generated roll angle.java.lang.RuntimeException
- if minMaxYaw < 0
, minMaxPitch < 0
,
minMaxRoll < 0
.@Deprecated public static Vector3D generateRandomRotationVector(java.util.Random random)
nextRotationVector(Random)
instead
rotationVector.length()
∈ [-pi; pi].
random
- the random generator to use.public static Vector3D nextRotationVector(java.util.Random random)
rotationVector.length()
∈ [-pi; pi].
random
- the random generator to use.@Deprecated public static Vector3D generateRandomRotationVector(java.util.Random random, double minMaxAngle)
nextRotationVector(Random,double)
instead
rotationVector.length()
∈ [-minMaxAngle
; minMaxAngle
].
random
- the random generator to use.minMaxAngle
- the maximum length of the generated rotation vector.java.lang.RuntimeException
- if minMaxAngle < 0
.public static Vector3D nextRotationVector(java.util.Random random, double minMaxAngle)
rotationVector.length()
∈ [-minMaxAngle
; minMaxAngle
].
random
- the random generator to use.minMaxAngle
- the maximum length of the generated rotation vector.java.lang.RuntimeException
- if minMaxAngle < 0
.@Deprecated public static AxisAngle generateRandomAxisAngle(java.util.Random random)
nextAxisAngle(Random)
instead
axisAngle.getAngle()
∈ [-pi; pi].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.public static AxisAngle nextAxisAngle(java.util.Random random)
axisAngle.getAngle()
∈ [-pi; pi].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.@Deprecated public static AxisAngle generateRandomAxisAngle(java.util.Random random, double minMaxAngle)
nextAxisAngle(Random,double)
instead
axisAngle.getAngle()
∈ [-minMaxAngle
; minMaxAngle
].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.minMaxAngle
- the maximum absolute angle value.java.lang.RuntimeException
- if minMaxAngle < 0
.public static AxisAngle nextAxisAngle(java.util.Random random, double minMaxAngle)
axisAngle.getAngle()
∈ [-minMaxAngle
; minMaxAngle
].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.minMaxAngle
- the maximum absolute angle value.java.lang.RuntimeException
- if minMaxAngle < 0
.@Deprecated public static AxisAngle32 generateRandomAxisAngle32(java.util.Random random)
nextAxisAngle32(Random)
instead
axisAngle.getAngle()
∈ [-pi; pi].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.public static AxisAngle32 nextAxisAngle32(java.util.Random random)
axisAngle.getAngle()
∈ [-pi; pi].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.@Deprecated public static AxisAngle32 generateRandomAxisAngle32(java.util.Random random, double minMaxAngle)
nextAxisAngle32(Random,double)
instead
axisAngle.getAngle()
∈ [-minMaxAngle
; minMaxAngle
].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.minMaxAngle
- the maximum absolute angle value.java.lang.RuntimeException
- if minMaxAngle < 0
.public static AxisAngle32 nextAxisAngle32(java.util.Random random, double minMaxAngle)
axisAngle.getAngle()
∈ [-minMaxAngle
; minMaxAngle
].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.minMaxAngle
- the maximum absolute angle value.java.lang.RuntimeException
- if minMaxAngle < 0
.@Deprecated public static Matrix3D generateRandomDiagonalMatrix3D(java.util.Random random)
nextDiagonalMatrix3D(Random)
instead
matrix.getM00()
∈ [-1.0; 1.0].
matrix.getM11()
∈ [-1.0; 1.0].
matrix.getM22()
∈ [-1.0; 1.0].
random
- the random generator to use.public static Matrix3D nextDiagonalMatrix3D(java.util.Random random)
matrix.getM00()
∈ [-1.0; 1.0].
matrix.getM11()
∈ [-1.0; 1.0].
matrix.getM22()
∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Matrix3D generateRandomDiagonalMatrix3D(java.util.Random random, double minMaxValue)
nextDiagonalMatrix3D(Random,double)
instead
matrix.getM00()
∈ [-minMaxValue
; minMaxValue
].
matrix.getM11()
∈ [-minMaxValue
; minMaxValue
].
matrix.getM22()
∈ [-minMaxValue
; minMaxValue
].
random
- the random generator to use.minMaxValue
- the maximum absolute value for each diagonal element.java.lang.RuntimeException
- if minMaxValue < 0
.public static Matrix3D nextDiagonalMatrix3D(java.util.Random random, double minMaxValue)
matrix.getM00()
∈ [-minMaxValue
; minMaxValue
].
matrix.getM11()
∈ [-minMaxValue
; minMaxValue
].
matrix.getM22()
∈ [-minMaxValue
; minMaxValue
].
random
- the random generator to use.minMaxValue
- the maximum absolute value for each diagonal element.java.lang.RuntimeException
- if minMaxValue < 0
.@Deprecated public static Matrix3D generateRandomDiagonalMatrix3D(java.util.Random random, double minValue, double maxValue)
nextDiagonalMatrix3D(Random,double,double)
instead
matrix.getM00()
∈ [minValue
; maxValue
].
matrix.getM11()
∈ [minValue
; maxValue
].
matrix.getM22()
∈ [minValue
; maxValue
].
random
- the random generator to use.minValue
- the minimum value of each diagonal element.maxValue
- the maximum value of each diagonal element.java.lang.RuntimeException
- if minValue > maxValue
.public static Matrix3D nextDiagonalMatrix3D(java.util.Random random, double minValue, double maxValue)
matrix.getM00()
∈ [minValue
; maxValue
].
matrix.getM11()
∈ [minValue
; maxValue
].
matrix.getM22()
∈ [minValue
; maxValue
].
random
- the random generator to use.minValue
- the minimum value of each diagonal element.maxValue
- the maximum value of each diagonal element.java.lang.RuntimeException
- if minValue > maxValue
.@Deprecated public static double generateRandomDouble(java.util.Random random)
nextDouble(Random)
insteadrandom
- the random generator to use.public static double nextDouble(java.util.Random random)
random
- the random generator to use.@Deprecated public static double generateRandomDouble(java.util.Random random, double minMaxValue)
nextDouble(Random,double)
insteadminMax
; minMax
].random
- the random generator to use.minMaxValue
- the maximum absolute value of the generated double.java.lang.RuntimeException
- if minMaxValue < 0
.public static double nextDouble(java.util.Random random, double minMaxValue)
minMax
; minMax
].random
- the random generator to use.minMaxValue
- the maximum absolute value of the generated double.java.lang.RuntimeException
- if minMaxValue < 0
.@Deprecated public static double generateRandomDouble(java.util.Random random, double minValue, double maxValue)
nextDouble(Random,double,double)
insteadminValue
; maxValue
].random
- the random generator to use.minValue
- the minimum value of the generated double.maxValue
- the maximum value of the generated double.java.lang.RuntimeException
- if minValue > maxValue
.public static double nextDouble(java.util.Random random, double minValue, double maxValue)
minValue
; maxValue
].random
- the random generator to use.minValue
- the minimum value of the generated double.maxValue
- the maximum value of the generated double.java.lang.RuntimeException
- if minValue > maxValue
.@Deprecated public static Matrix3D generateRandomMatrix3D(java.util.Random random)
nextMatrix3D(Random)
instead
matrix
ij ∈ [-1.0; 1.0].
random
- the random generator to use.public static Matrix3D nextMatrix3D(java.util.Random random)
matrix
ij ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Matrix3D generateRandomMatrix3D(java.util.Random random, double minMaxValue)
nextMatrix3D(Random,double)
instead
matrix
ij ∈ [-minMaxValue
; minMaxValue
].
random
- the random generator to use.minMaxValue
- the maximum absolute value for each element.java.lang.RuntimeException
- if minMaxValue < 0
.public static Matrix3D nextMatrix3D(java.util.Random random, double minMaxValue)
matrix
ij ∈ [-minMaxValue
; minMaxValue
].
random
- the random generator to use.minMaxValue
- the maximum absolute value for each element.java.lang.RuntimeException
- if minMaxValue < 0
.@Deprecated public static Matrix3D generateRandomMatrix3D(java.util.Random random, double minValue, double maxValue)
nextMatrix3D(Random,double,double)
instead
matrix
ij ∈ [minValue
; maxValue
].
random
- the random generator to use.minValue
- the minimum value for each element.maxValue
- the maximum value for each element.java.lang.RuntimeException
- if minValue > maxValue
.public static Matrix3D nextMatrix3D(java.util.Random random, double minValue, double maxValue)
matrix
ij ∈ [minValue
; maxValue
].
random
- the random generator to use.minValue
- the minimum value for each element.maxValue
- the maximum value for each element.java.lang.RuntimeException
- if minValue > maxValue
.@Deprecated public static Quaternion generateRandomQuaternion(java.util.Random random)
nextQuaternion(Random)
insteadThe rotation magnitude described by the generated quaternion is in [-pi; pi].
random
- the random generator to use.public static Quaternion nextQuaternion(java.util.Random random)
The rotation magnitude described by the generated quaternion is in [-pi; pi].
random
- the random generator to use.@Deprecated public static Quaternion generateRandomQuaternion(java.util.Random random, double minMaxAngle)
nextQuaternion(Random,double)
instead
The rotation magnitude described by the generated quaternion is in [-minMaxAngle
;
minMaxAngle
].
random
- the random generator to use.minMaxAngle
- the maximum absolute angle described by the generated quaternion.java.lang.RuntimeException
- if minMaxAngle < 0
.public static Quaternion nextQuaternion(java.util.Random random, double minMaxAngle)
The rotation magnitude described by the generated quaternion is in [-minMaxAngle
;
minMaxAngle
].
random
- the random generator to use.minMaxAngle
- the maximum absolute angle described by the generated quaternion.java.lang.RuntimeException
- if minMaxAngle < 0
.@Deprecated public static Quaternion32 generateRandomQuaternion32(java.util.Random random)
nextQuaternion32(Random)
insteadThe rotation magnitude described by the generated quaternion is in [-pi; pi].
random
- the random generator to use.public static Quaternion32 nextQuaternion32(java.util.Random random)
The rotation magnitude described by the generated quaternion is in [-pi; pi].
random
- the random generator to use.@Deprecated public static Quaternion32 generateRandomQuaternion32(java.util.Random random, double minMaxAngleRange)
nextQuaternion32(Random,double)
instead
The rotation magnitude described by the generated quaternion is in [-minMaxAngle
;
minMaxAngle
].
random
- the random generator to use.minMaxAngleRange
- the maximum absolute angle described by the generated quaternion.java.lang.RuntimeException
- if minMaxAngle < 0
.public static Quaternion32 nextQuaternion32(java.util.Random random, double minMaxAngleRange)
The rotation magnitude described by the generated quaternion is in [-minMaxAngle
;
minMaxAngle
].
random
- the random generator to use.minMaxAngleRange
- the maximum absolute angle described by the generated quaternion.java.lang.RuntimeException
- if minMaxAngle < 0
.@Deprecated public static RigidBodyTransform generateRandomRigidBodyTransform(java.util.Random random)
nextRigidBodyTransform(Random)
instead
random
- the random generator to use.public static RigidBodyTransform nextRigidBodyTransform(java.util.Random random)
random
- the random generator to use.@Deprecated public static RigidBodyTransform generateRandomRigidBodyTransform2D(java.util.Random random)
nextRigidBodyTransform2D(Random)
insteadrandom
- the random generator to use.public static RigidBodyTransform nextRigidBodyTransform2D(java.util.Random random)
random
- the random generator to use.@Deprecated public static QuaternionBasedTransform generateRandomQuaternionBasedTransform(java.util.Random random)
nextQuaternionBasedTransform(Random)
instead
random
- the random generator to use.public static QuaternionBasedTransform nextQuaternionBasedTransform(java.util.Random random)
random
- the random generator to use.@Deprecated public static AffineTransform generateRandomAffineTransform(java.util.Random random)
nextAffineTransform(Random)
instead
random
- the random generator to use.public static AffineTransform nextAffineTransform(java.util.Random random)
random
- the random generator to use.@Deprecated public static RotationMatrix generateRandomRotationMatrix(java.util.Random random)
nextRotationMatrix(Random)
insteadrandom
- the random generator to use.public static RotationMatrix nextRotationMatrix(java.util.Random random)
random
- the random generator to use.@Deprecated public static RotationMatrix generateRandomRotationMatrix(java.util.Random random, double minMaxAngle)
nextRotationMatrix(Random,double)
insteadminMaxAngle
; minMaxAngle
].random
- the random generator to use.minMaxAngle
- the maximum absolute angle described by the generated rotation matrix.public static RotationMatrix nextRotationMatrix(java.util.Random random, double minMaxAngle)
minMaxAngle
; minMaxAngle
].random
- the random generator to use.minMaxAngle
- the maximum absolute angle described by the generated rotation matrix.@Deprecated public static RotationScaleMatrix generateRandomRotationScaleMatrix(java.util.Random random, double maxScale)
nextRotationScaleMatrix(Random,double)
instead
maxScale
].
random
- the random generator to use.maxScale
- the maximum scale value used for each scale factor.java.lang.RuntimeException
- if maxScale < 0
.public static RotationScaleMatrix nextRotationScaleMatrix(java.util.Random random, double maxScale)
maxScale
].
random
- the random generator to use.maxScale
- the maximum scale value used for each scale factor.java.lang.RuntimeException
- if maxScale < 0
.@Deprecated public static RotationScaleMatrix generateRandomRotationScaleMatrix(java.util.Random random, double minMaxAngle, double maxScale)
nextRotationScaleMatrix(Random,double,double)
instead
minMaxAngle
; minMaxAngle
].
maxScale
].
random
- the random generator to use.minMaxAngle
- the maximum absolute angle value that describes the generated
rotation-scale matrix.maxScale
- the maximum scale value used for each scale factor.java.lang.RuntimeException
- if minMaxAngle < 0
.java.lang.RuntimeException
- if maxScale < 0
.public static RotationScaleMatrix nextRotationScaleMatrix(java.util.Random random, double minMaxAngle, double maxScale)
minMaxAngle
; minMaxAngle
].
maxScale
].
random
- the random generator to use.minMaxAngle
- the maximum absolute angle value that describes the generated
rotation-scale matrix.maxScale
- the maximum scale value used for each scale factor.java.lang.RuntimeException
- if minMaxAngle < 0
.java.lang.RuntimeException
- if maxScale < 0
.@Deprecated public static Point3D generateRandomPoint3D(java.util.Random random)
nextPoint3D(Random)
instead
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Point3D nextPoint3D(java.util.Random random)
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Point3D generateRandomPoint3D(java.util.Random random, double minMax)
nextPoint3D(Random,double)
instead
point.x
∈ [-minMax; minMax].
point.y
∈ [-minMax; minMax].
point.z
∈ [-minMax; minMax].
random
- the random generator to use.minMax
- the maximum absolute value for each coordinate.java.lang.RuntimeException
- if minMax < 0
.public static Point3D nextPoint3D(java.util.Random random, double minMax)
point.x
∈ [-minMax; minMax].
point.y
∈ [-minMax; minMax].
point.z
∈ [-minMax; minMax].
random
- the random generator to use.minMax
- the maximum absolute value for each coordinate.java.lang.RuntimeException
- if minMax < 0
.@Deprecated public static Point3D generateRandomPoint3D(java.util.Random random, double min, double max)
nextPoint3D(Random,double,double)
instead
point.x
∈ [min; max].
point.y
∈ [min; max].
point.z
∈ [min; max].
random
- the random generator to use.min
- the minimum value for each coordinate.max
- the maximum value for each coordinate.java.lang.RuntimeException
- if min > max
.public static Point3D nextPoint3D(java.util.Random random, double min, double max)
point.x
∈ [min; max].
point.y
∈ [min; max].
point.z
∈ [min; max].
random
- the random generator to use.min
- the minimum value for each coordinate.max
- the maximum value for each coordinate.java.lang.RuntimeException
- if min > max
.@Deprecated public static Point3D generateRandomPoint3D(java.util.Random random, double maxAbsoluteX, double maxAbsoluteY, double maxAbsoluteZ)
nextPoint3D(Random,double,double,double)
instead
point.x
∈ [-maxAbsoluteX; maxAbsoluteX].
point.y
∈ [-maxAbsoluteY; maxAbsoluteY].
point.z
∈ [-maxAbsoluteZ; maxAbsoluteZ].
random
- the random generator to use.maxAbsoluteX
- the maximum absolute value for the x-coordinate.maxAbsoluteY
- the maximum absolute value for the y-coordinate.maxAbsoluteZ
- the maximum absolute value for the z-coordinate.java.lang.RuntimeException
- if maxAbsoluteX < 0
, maxAbsoluteY < 0
,
maxAbsoluteZ < 0
.public static Point3D nextPoint3D(java.util.Random random, double maxAbsoluteX, double maxAbsoluteY, double maxAbsoluteZ)
point.x
∈ [-maxAbsoluteX; maxAbsoluteX].
point.y
∈ [-maxAbsoluteY; maxAbsoluteY].
point.z
∈ [-maxAbsoluteZ; maxAbsoluteZ].
random
- the random generator to use.maxAbsoluteX
- the maximum absolute value for the x-coordinate.maxAbsoluteY
- the maximum absolute value for the y-coordinate.maxAbsoluteZ
- the maximum absolute value for the z-coordinate.java.lang.RuntimeException
- if maxAbsoluteX < 0
, maxAbsoluteY < 0
,
maxAbsoluteZ < 0
.@Deprecated public static Point3D generateRandomPoint3D(java.util.Random random, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
point.x
∈ [minX; maxX].
point.y
∈ [minY; maxY].
point.z
∈ [minZ; maxZ].
random
- the random generator to use.minX
- the minimum value for the x-coordinate.maxX
- the maximum value for the x-coordinate.minY
- the minimum value for the y-coordinate.maxY
- the maximum value for the y-coordinate.minZ
- the minimum value for the z-coordinate.maxZ
- the maximum value for the z-coordinate.java.lang.RuntimeException
- if maxX < minX
, maxY < minY
, maxZ < minZ
.public static Point3D nextPoint3D(java.util.Random random, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
point.x
∈ [minX; maxX].
point.y
∈ [minY; maxY].
point.z
∈ [minZ; maxZ].
random
- the random generator to use.minX
- the minimum value for the x-coordinate.maxX
- the maximum value for the x-coordinate.minY
- the minimum value for the y-coordinate.maxY
- the maximum value for the y-coordinate.minZ
- the minimum value for the z-coordinate.maxZ
- the maximum value for the z-coordinate.java.lang.RuntimeException
- if maxX < minX
, maxY < minY
, maxZ < minZ
.@Deprecated public static Vector3D generateRandomVector3D(java.util.Random random)
nextVector3D(Random)
instead
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Vector3D nextVector3D(java.util.Random random)
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Vector3D generateRandomVector3D(java.util.Random random, Tuple3DReadOnly minMax)
nextVector3D(Random,Tuple3DReadOnly)
instead
vector
i ∈ [-minMax
i; minMax
i].
random
- the random generator to use.minMax
- tuple used to bound the maximum absolute value of each component of the
generated vector. Not modified.java.lang.RuntimeException
- if any component of minMax
is negative.public static Vector3D nextVector3D(java.util.Random random, Tuple3DReadOnly minMax)
vector
i ∈ [-minMax
i; minMax
i].
random
- the random generator to use.minMax
- tuple used to bound the maximum absolute value of each component of the
generated vector. Not modified.java.lang.RuntimeException
- if any component of minMax
is negative.@Deprecated public static Vector3D generateRandomVector3D(java.util.Random random, Tuple3DReadOnly min, Tuple3DReadOnly max)
vector
i ∈ [min
i; max
i].
random
- the random generator to use.min
- tuple used as upper-bound for each component of the generated vector. Not modified.max
- tuple used as lower-bound for each component of the generated vector. Not modified.java.lang.RuntimeException
- if min
i > max
i.public static Vector3D nextVector3D(java.util.Random random, Tuple3DReadOnly min, Tuple3DReadOnly max)
vector
i ∈ [min
i; max
i].
random
- the random generator to use.min
- tuple used as upper-bound for each component of the generated vector. Not modified.max
- tuple used as lower-bound for each component of the generated vector. Not modified.java.lang.RuntimeException
- if min
i > max
i.@Deprecated public static Vector3D generateRandomVector3D(java.util.Random random, double min, double max)
nextVector3D(Random,double,double)
instead
vector
i ∈ [min
; max
].
random
- the random generator to use.min
- upper-bound for each component of the generated vector. Not modified.max
- lower-bound for each component of the generated vector. Not modified.java.lang.RuntimeException
- if min > max
.public static Vector3D nextVector3D(java.util.Random random, double min, double max)
vector
i ∈ [min
; max
].
random
- the random generator to use.min
- upper-bound for each component of the generated vector. Not modified.max
- lower-bound for each component of the generated vector. Not modified.java.lang.RuntimeException
- if min > max
.@Deprecated public static Vector3D generateRandomVector3D(java.util.Random random, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
vector.x
∈ [minX; maxX].
vector.y
∈ [minY; maxY].
vector.z
∈ [minZ; maxZ].
random
- the random generator to use.minX
- the minimum value for the x-component.maxX
- the maximum value for the x-component.minY
- the minimum value for the y-component.maxY
- the maximum value for the y-component.minZ
- the minimum value for the z-component.maxZ
- the maximum value for the z-component.java.lang.RuntimeException
- if maxX < minX
, maxY < minY
, maxZ < minZ
.public static Vector3D nextVector3D(java.util.Random random, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
vector.x
∈ [minX; maxX].
vector.y
∈ [minY; maxY].
vector.z
∈ [minZ; maxZ].
random
- the random generator to use.minX
- the minimum value for the x-component.maxX
- the maximum value for the x-component.minY
- the minimum value for the y-component.maxY
- the maximum value for the y-component.minZ
- the minimum value for the z-component.maxZ
- the maximum value for the z-component.java.lang.RuntimeException
- if maxX < minX
, maxY < minY
, maxZ < minZ
.@Deprecated public static Vector3D generateRandomVector3DWithFixedLength(java.util.Random random, double length)
nextVector3DWithFixedLength(Random,double)
insteadlength
.random
- the random generator to use.length
- the length of the generated vector.public static Vector3D nextVector3DWithFixedLength(java.util.Random random, double length)
length
.random
- the random generator to use.length
- the length of the generated vector.@Deprecated public static Vector3D generateRandomOrthogonalVector3D(java.util.Random random, Vector3DReadOnly vectorToBeOrthogonalTo, boolean normalize)
vectorToBeOrthogonalTo
.random
- the random generator to use.vectorToBeOrthogonalTo
- the vector to be orthogonal to. Not modified.normalize
- whether to normalize the generated vector or not.public static Vector3D nextOrthogonalVector3D(java.util.Random random, Vector3DReadOnly vectorToBeOrthogonalTo, boolean normalize)
vectorToBeOrthogonalTo
.random
- the random generator to use.vectorToBeOrthogonalTo
- the vector to be orthogonal to. Not modified.normalize
- whether to normalize the generated vector or not.@Deprecated public static Point2D generateRandomPoint2D(java.util.Random random)
nextPoint2D(Random)
instead
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Point2D nextPoint2D(java.util.Random random)
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Point2D generateRandomPoint2D(java.util.Random random, double minMax)
nextPoint2D(Random,double)
instead
point
i ∈ [-minMax; minMax].
random
- the random generator to use.minMax
- the maximum absolute value for each coordinate.java.lang.RuntimeException
- if minMax < 0
.public static Point2D nextPoint2D(java.util.Random random, double minMax)
point
i ∈ [-minMax; minMax].
random
- the random generator to use.minMax
- the maximum absolute value for each coordinate.java.lang.RuntimeException
- if minMax < 0
.@Deprecated public static Point2D generateRandomPoint2D(java.util.Random random, double min, double max)
nextPoint2D(Random,double,double)
instead
point.x
∈ [min; max].
point.y
∈ [min; max].
random
- the random generator to use.min
- the minimum value for each coordinate.max
- the maximum value for each coordinate.java.lang.RuntimeException
- if min > max
.public static Point2D nextPoint2D(java.util.Random random, double min, double max)
point.x
∈ [min; max].
point.y
∈ [min; max].
random
- the random generator to use.min
- the minimum value for each coordinate.max
- the maximum value for each coordinate.java.lang.RuntimeException
- if min > max
.@Deprecated public static Point2D generateRandomPoint2D(java.util.Random random, double minX, double maxX, double minY, double maxY)
nextPoint2D(Random,double,double,double,double)
instead
point.x
∈ [minX; maxX].
point.y
∈ [minY; maxY].
random
- the random generator to use.minX
- the minimum value for the x-coordinate.maxX
- the maximum value for the x-coordinate.minY
- the minimum value for the y-coordinate.maxY
- the maximum value for the y-coordinate.java.lang.RuntimeException
- if minX > maxX
or minY > maxY
.public static Point2D nextPoint2D(java.util.Random random, double minX, double maxX, double minY, double maxY)
point.x
∈ [minX; maxX].
point.y
∈ [minY; maxY].
random
- the random generator to use.minX
- the minimum value for the x-coordinate.maxX
- the maximum value for the x-coordinate.minY
- the minimum value for the y-coordinate.maxY
- the maximum value for the y-coordinate.java.lang.RuntimeException
- if minX > maxX
or minY > maxY
.@Deprecated public static Vector2D generateRandomVector2D(java.util.Random random)
nextVector2D(Random)
instead
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Vector2D nextVector2D(java.util.Random random)
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Vector2D generateRandomVector2D(java.util.Random random, double min, double max)
nextVector2D(Random,double,double)
instead
vector
i ∈ [min
; max
].
random
- the random generator to use.min
- upper-bound for each component of the generated vector. Not modified.max
- lower-bound for each component of the generated vector. Not modified.java.lang.RuntimeException
- if min > max
.public static Vector2D nextVector2D(java.util.Random random, double min, double max)
vector
i ∈ [min
; max
].
random
- the random generator to use.min
- upper-bound for each component of the generated vector. Not modified.max
- lower-bound for each component of the generated vector. Not modified.java.lang.RuntimeException
- if min > max
.@Deprecated public static Vector2D generateRandomVector2DWithFixedLength(java.util.Random random, double length)
nextVector2DWithFixedLength(Random,double)
insteadlength
.random
- the random generator to use.length
- the length of the generated 2D vector.public static Vector2D nextVector2DWithFixedLength(java.util.Random random, double length)
length
.random
- the random generator to use.length
- the length of the generated 2D vector.@Deprecated public static Vector2D generateRandomVector2D(java.util.Random random, Tuple2DReadOnly minMax)
nextVector2D(Random,Tuple2DReadOnly)
instead
vector
i ∈ [-minMax
i; minMax
i].
random
- the random generator to use.minMax
- tuple used to bound the maximum absolute value of each component of the
generated 2D vector. Not modified.java.lang.RuntimeException
- if any component of minMax
is negative.public static Vector2D nextVector2D(java.util.Random random, Tuple2DReadOnly minMax)
vector
i ∈ [-minMax
i; minMax
i].
random
- the random generator to use.minMax
- tuple used to bound the maximum absolute value of each component of the
generated 2D vector. Not modified.java.lang.RuntimeException
- if any component of minMax
is negative.@Deprecated public static Vector2D generateRandomVector2D(java.util.Random random, Tuple2DReadOnly min, Tuple2DReadOnly max)
vector
i ∈ [min
i; max
i].
random
- the random generator to use.min
- tuple used as upper-bound for each component of the generated 2D vector. Not
modified.max
- tuple used as lower-bound for each component of the generated 2D vector. Not
modified.java.lang.RuntimeException
- if min
i > max
i.public static Vector2D nextVector2D(java.util.Random random, Tuple2DReadOnly min, Tuple2DReadOnly max)
vector
i ∈ [min
i; max
i].
random
- the random generator to use.min
- tuple used as upper-bound for each component of the generated 2D vector. Not
modified.max
- tuple used as lower-bound for each component of the generated 2D vector. Not
modified.java.lang.RuntimeException
- if min
i > max
i.@Deprecated public static Vector4D generateRandomVector4D(java.util.Random random)
nextVector4D(Random)
instead
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Vector4D nextVector4D(java.util.Random random)
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Vector3D32 generateRandomVector3D32(java.util.Random random)
nextVector3D32(Random)
instead
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Vector3D32 nextVector3D32(java.util.Random random)
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Point3D32 generateRandomPoint3D32(java.util.Random random)
nextPoint3D32(Random)
instead
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Point3D32 nextPoint3D32(java.util.Random random)
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Vector2D32 generateRandomVector2D32(java.util.Random random)
nextVector2D32(Random)
instead
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Vector2D32 nextVector2D32(java.util.Random random)
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Point2D32 generateRandomPoint2D32(java.util.Random random)
nextPoint2D32(Random)
instead
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Point2D32 nextPoint2D32(java.util.Random random)
point
i ∈ [-1.0; 1.0].
random
- the random generator to use.@Deprecated public static Vector4D32 generateRandomVector4D32(java.util.Random random)
nextVector4D32(Random)
instead
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static Vector4D32 nextVector4D32(java.util.Random random)
vector
i ∈ [-1.0; 1.0].
random
- the random generator to use.public static void randomizeAxisAngle(java.util.Random random, AxisAngleBasics axisAngleToRandomize)
axisAngle.getAngle()
∈ [-pi; pi].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.axisAngleToRandomize
- the axis-angle to randomize. Modified.public static void randomizeAxisAngle(java.util.Random random, double minMaxAngle, AxisAngleBasics axisAngleToRandomize)
axisAngle.getAngle()
∈ [-minMaxAngle
; minMaxAngle
].
The approach used here generates uniformly a point on a sphere to create uniformly distributed random axes, see link. The angle is then generated as a normal bounded random double.
random
- the random generator to use.minMaxAngle
- the maximum absolute angle value.axisAngleToRandomize
- the axis-angle to randomize. Modified.java.lang.RuntimeException
- if minMaxAngle < 0
.public static void randomizeTuple3D(java.util.Random random, Tuple3DBasics tupleToRandomize)
tuple
i ∈ [-1.0; 1.0].
random
- the random generator to use.tupleToRandomize
- the tuple to randomize. Modified.public static void randomizeTuple3D(java.util.Random random, Tuple3DReadOnly minMax, Tuple3DBasics tupleToRandomize)
tuple
i ∈ [-minMax
i; minMax
i].
random
- the random generator to use.minMax
- tuple used to bound the maximum absolute value of each component of the
generated vector. Not modified.tupleToRandomize
- the tuple to randomize. Modified.java.lang.RuntimeException
- if any component of minMax
is negative.public static void randomizeTuple3D(java.util.Random random, Tuple3DReadOnly min, Tuple3DReadOnly max, Tuple3DBasics tupleToRandomize)
vector
i ∈ [min
i; max
i].
random
- the random generator to use.min
- tuple used as upper-bound for each component of the generated vector. Not modified.max
- tuple used as lower-bound for each component of the generated vector. Not modified.tupleToRandomize
- the tuple to randomize. Modified.java.lang.RuntimeException
- if min
i > max
i.public static void randomizeTuple2D(java.util.Random random, Tuple2DBasics tupleToRandomize)
tuple
i ∈ [-1.0; 1.0].
random
- the random generator to use.tupleToRandomize
- the 2D tuple to randomize. Modified.public static void randomizeTuple2D(java.util.Random random, Tuple2DReadOnly minMax, Tuple2DBasics tupleToRandomize)
tuple
i ∈ [-minMax
i; minMax
i].
random
- the random generator to use.minMax
- tuple used to bound the maximum absolute value of each component of the
generated vector. Not modified.tupleToRandomize
- the 2D tuple to randomize. Modified.java.lang.RuntimeException
- if any component of minMax
is negative.public static void randomizeTuple2D(java.util.Random random, Tuple2DReadOnly min, Tuple2DReadOnly max, Tuple2DBasics tupleToRandomize)
vector
i ∈ [min
i; max
i].
random
- the random generator to use.min
- tuple used as upper-bound for each component of the generated vector. Not modified.max
- tuple used as lower-bound for each component of the generated vector. Not modified.tupleToRandomize
- the 2D tuple to randomize. Modified.java.lang.RuntimeException
- if min
i > max
i.