java.lang.Object
com.github.stephengold.joltjni.operator.Op
Java equivalents for the overloaded operators of Jolt Physics.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConstColor
assign
(Color left, ConstColor right) Copy the right argument to the left one.static Mat44Arg
Copy the right argument to the left one.static RMat44Arg
Copy the right argument to the left one.static RVec3Arg
Copy the right argument to the left one.static Vec3Arg
Copy the right argument to the left one.static boolean
isEqual
(ConstColor left, ConstColor right) Test whether the specified colors are equal.static boolean
Test whether the specified matrices are equal.static RVec3
Return the negative of the specified vector.static RVec3
Return the component-wise difference of the specified vectors.static RVec3
Return the component-wise difference of the specified vectors.static Vec3
Return the negative of the specified vector.static Vec3
Return the component-wise difference of the specified vectors.static void
minusEquals
(Vec3 left, Vec3Arg right) Subtract the 2nd argument from the first argument.static boolean
notEqual
(ConstColor left, ConstColor right) Test whether the specified colors are unequal.static RVec3
Return the component-wise sum of the specified vectors.static RVec3
Return the component-wise sum of the specified vectors.static RVec3
Return the component-wise sum of the specified vectors.static RVec3
Return the component-wise sum of the specified vectors.static Vec3
Return the component-wise sum of the specified vectors.static void
plusEquals
(RVec3 left, RVec3Arg right) Add the right argument to the left argument.static void
plusEquals
(RVec3 left, Vec3Arg right) Add the right argument to the left argument.static void
plusEquals
(Vec3 left, RVec3Arg right) Add the 2nd argument to the first argument.static void
plusEquals
(Vec3 left, Vec3Arg right) Add the 2nd argument to the first argument.static RVec3
Return a scaled version of the specified vector.static Vec3
Return a scaled version of the specified vector.static void
slashEquals
(RVec3 left, double right) Divide the left argument by the right argument.static void
slashEquals
(Vec3 left, float right) Divide the left argument by the right argument.static RVec3
Return a scaled version of the specified vector.static Quat
Return a scaled version of the specified quaternion.static Vec3
Return a scaled version of the specified vector.static Mat44
Return the product of the specified matrices.static Vec3
Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one.static Quat
Return the product of the specified quaternions.static Vec3
Rotate the specified vector by the specified unit quaternion.static RMat44
Return the product of the specified matrices.static RMat44
Return the product of the specified matrices.static RVec3
Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one.static RVec3
Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one.static Vec3
Return a scaled version of the specified vector.static Vec3
Rotate the specified vector by the conjugate of the specified unit quaternion.static Vec3
Return the component-wise product of the specified vectors.static void
starEquals
(Vec3 left, float right) Scale the left argument by the right argument.
-
Method Details
-
assign
Copy the right argument to the left one. (native operator: binary=
)- Parameters:
left
- the matrix to modify (not null)right
- the value to assign (not null, unaffected)- Returns:
- the assigned value, for chaining
-
assign
Copy the right argument to the left one. (native operator: binary=
)- Parameters:
left
- the matrix to modify (not null)right
- the value to assign (not null, unaffected)- Returns:
- the assigned value, for chaining
-
assign
Copy the right argument to the left one. (native operator: binary=
)- Parameters:
left
- the matrix to modify (not null)right
- the value to assign (not null, unaffected)- Returns:
- the assigned value, for chaining
-
assign
Copy the right argument to the left one. (native operator: binary=
)- Parameters:
left
- the vector to modify (not null)right
- the value to assign (not null, unaffected)- Returns:
- the assigned value, for chaining
-
assign
Copy the right argument to the left one. (native operator: binary=
)- Parameters:
left
- the vector to modify (not null)right
- the value to assign (not null, unaffected)- Returns:
- the assigned value, for chaining
-
isEqual
Test whether the specified colors are equal. (native operator: binary==
)- Parameters:
left
- the first color to test (not null, unaffected)right
- the 2nd color to test (not null, unaffected)- Returns:
true
if equal,false
if unequal
-
isEqual
Test whether the specified matrices are equal. (native operator: binary==
)- Parameters:
left
- the first matrix (not null, unaffected)right
- the 2nd matrix (not null, unaffected)- Returns:
true
if equal, otherwisefalse
-
minus
Return the negative of the specified vector. (native operator: unary-
)- Parameters:
right
- the input vector (not null, unaffected)- Returns:
- a new vector
-
minus
Return the component-wise difference of the specified vectors. (native operator: binary-
)- Parameters:
left
- the base vector (not null, unaffected)right
- the offset to subtract (not null, unaffected)- Returns:
- a new vector
-
minus
Return the component-wise difference of the specified vectors. (native operator: binary-
)- Parameters:
left
- the base vector (not null, unaffected)right
- the offset to subtract (not null, unaffected)- Returns:
- a new vector
-
minus
Return the negative of the specified vector. (native operator: unary-
)- Parameters:
right
- the input vector (not null, unaffected)- Returns:
- a new vector
-
minus
Return the component-wise difference of the specified vectors. (native operator: binary-
)- Parameters:
left
- the first vector (not null, unaffected)right
- the vector to subtract (not null, unaffected)- Returns:
- a new vector
-
minusEquals
Subtract the 2nd argument from the first argument. (native operator: binary-=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the vector to subtract (not null, unaffected)
-
notEqual
Test whether the specified colors are unequal. (native operator: binary!=
)- Parameters:
left
- the first color to test (not null, unaffected)right
- the 2nd color to test (not null, unaffected)- Returns:
false
if equal,true
if unequal
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+
)- Parameters:
left
- the first vector (not null, unaffected)right
- the 2nd vector (not null, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+
)- Parameters:
left
- the first vector (not null, unaffected)right
- the 2nd vector (not null, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+
)- Parameters:
left
- the base vector (not null, unaffected)right
- the offset to add (not null, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+
)- Parameters:
left
- the first vector (not null, unaffected)right
- the 2nd vector (not null, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+
)- Parameters:
left
- the first vector (not null, unaffected)right
- the 2nd vector (not null, unaffected)- Returns:
- a new vector
-
plusEquals
Add the right argument to the left argument. (native operator: binary+=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the vector to add (not null, unaffected)
-
plusEquals
Add the right argument to the left argument. (native operator: binary+=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the vector to add (not null, unaffected)
-
plusEquals
Add the 2nd argument to the first argument. (native operator: binary+=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the vector to add (not null, unaffected)
-
plusEquals
Add the 2nd argument to the first argument. (native operator: binary+=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the vector to add (not null, unaffected)
-
slash
Return a scaled version of the specified vector. (native operator: binary/
)- Parameters:
left
- the input vector (not null, unaffected)right
- the inverse scale to apply- Returns:
- a new vector
-
slash
Return a scaled version of the specified vector. (native operator: binary/
)- Parameters:
left
- the input vector (not null, unaffected)right
- the inverse scale to apply- Returns:
- a new vector
-
slashEquals
Divide the left argument by the right argument. (native operator: binary/=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the denominator (not null, unaffected)
-
slashEquals
Divide the left argument by the right argument. (native operator: binary/=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the denominator (not null, unaffected)
-
star
Return a scaled version of the specified vector. (native operator: binary*
)- Parameters:
left
- the scale to applyright
- the input vector (not null, unaffected)- Returns:
- a new vector
-
star
Return a scaled version of the specified quaternion. (native operator: binary*
)- Parameters:
left
- the scale to applyright
- the input quaternion (not null, unaffected)- Returns:
- a new quaternion
-
star
Return a scaled version of the specified vector. (native operator: binary*
)- Parameters:
left
- the scale to applyright
- the input vector (not null, unaffected)- Returns:
- a new vector
-
star
Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one. (native operator: binary*
)- Parameters:
left
- the left factor (not null, unaffected)right
- the right factor (not null, unaffected)- Returns:
- a new vector
-
star
Return the product of the specified matrices. (native operator: binary*
)- Parameters:
left
- the left factor (not null, unaffected)right
- the right factor (not null, unaffected)- Returns:
- a new matrix
-
star
Return the product of the specified quaternions. (native operator: binary*
)- Parameters:
left
- the left factor (not null, unaffected)right
- the right factor (not null, unaffected)- Returns:
- a new quaternion
-
star
Rotate the specified vector by the specified unit quaternion. (native operator: binary*
)- Parameters:
left
- the rotation to apply (not null, normalized, unaffected)right
- the vector to apply it to (not null, unaffected)- Returns:
- a new vector
-
star
Return the product of the specified matrices. (native operator: binary*
)- Parameters:
left
- the left factor (not null, unaffected)right
- the right factor (not null, unaffected)- Returns:
- a new matrix
-
star
Return the product of the specified matrices. (native operator: binary*
)- Parameters:
left
- the left factor (not null, unaffected)right
- the right factor (not null, unaffected)- Returns:
- a new vector
-
star
Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one. (native operator: binary*
)- Parameters:
left
- the left factor (not null, unaffected)right
- the right factor (not null, unaffected)- Returns:
- a new vector
-
star
Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one. (native operator: binary*
)- Parameters:
left
- the left factor (not null, unaffected)right
- the right factor (not null, unaffected)- Returns:
- a new vector
-
star
Return a scaled version of the specified vector. (native operator: binary*
)- Parameters:
left
- the input vector (not null, unaffected)right
- the scale to apply- Returns:
- a new vector
-
star
Rotate the specified vector by the conjugate of the specified unit quaternion. (native operator: binary*
)- Parameters:
left
- the input vector (not null, unaffected)right
- the conjugate of the rotation to apply (not null, normalized, unaffected)- Returns:
- a new vector
-
star
Return the component-wise product of the specified vectors. (native operator: binary*
)- Parameters:
left
- the first vector (not null, unaffected)right
- the 2nd vector (not null, unaffected)- Returns:
- a new vector
-
starEquals
Scale the left argument by the right argument. (native operator: binary*=
)- Parameters:
left
- the accumulating vector (not null, modified)right
- the scale factor to apply (not null, unaffected)
-