java.lang.Object
com.github.stephengold.joltjni.operator.Op
Java equivalents for the overloaded operators of Jolt Physics.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConstColorassign(Color left, ConstColor right) Copy the right argument to the left one.static Mat44ArgCopy the right argument to the left one.static RMat44ArgCopy the right argument to the left one.static RVec3ArgCopy the right argument to the left one.static Vec3ArgCopy the right argument to the left one.static booleanisEqual(ConstColor left, ConstColor right) Test whether the specified colors are equal.static booleanTest whether the specified matrices are equal.static RVec3Return the negative of the specified vector.static RVec3Return the component-wise difference of the specified vectors.static RVec3Return the component-wise difference of the specified vectors.static Vec3Return the negative of the specified vector.static Vec3Return the component-wise difference of the specified vectors.static voidminusEquals(Vec3 left, Vec3Arg right) Subtract the 2nd argument from the first argument.static booleannotEqual(ConstColor left, ConstColor right) Test whether the specified colors are unequal.static RVec3plus(RVec3Arg left, ConstFloat3 right) Return the component-wise sum of the specified vectors.static RVec3Return the component-wise sum of the specified vectors.static RVec3Return the component-wise sum of the specified vectors.static RVec3Return the component-wise sum of the specified vectors.static Vec3Return the component-wise sum of the specified vectors.static voidplusEquals(RVec3 left, RVec3Arg right) Add the right argument to the left argument.static voidplusEquals(RVec3 left, Vec3Arg right) Add the right argument to the left argument.static voidplusEquals(Vec3 left, RVec3Arg right) Add the 2nd argument to the first argument.static voidplusEquals(Vec3 left, Vec3Arg right) Add the 2nd argument to the first argument.static RVec3Return a scaled version of the specified vector.static Vec3Return a scaled version of the specified vector.static voidslashEquals(RVec3 left, double right) Divide the left argument by the right argument.static voidslashEquals(Vec3 left, float right) Divide the left argument by the right argument.static RVec3Return a scaled version of the specified vector.static QuatReturn a scaled version of the specified quaternion.static Vec3Return a scaled version of the specified vector.static Mat44Return the product of the specified matrices.static Vec3Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one.static QuatReturn the product of the specified quaternions.static Vec3Rotate the specified vector by the specified unit quaternion.static RMat44Return the product of the specified matrices.static RMat44Return the product of the specified matrices.static RVec3Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one.static RVec3Return the specified matrix multiplied by the specified column vector, with the 4th component of the right factor implied to be one.static Vec3Return a scaled version of the specified vector.static Vec3Rotate the specified vector by the conjugate of the specified unit quaternion.static Vec3Return the component-wise product of the specified vectors.static voidstarEquals(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 (notnull)right- the value to assign (notnull, 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 (notnull)right- the value to assign (notnull, 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 (notnull)right- the value to assign (notnull, 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 (notnull)right- the value to assign (notnull, 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 (notnull)right- the value to assign (notnull, 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 (notnull, unaffected)right- the 2nd color to test (notnull, unaffected)- Returns:
trueif equal,falseif unequal
-
isEqual
Test whether the specified matrices are equal. (native operator: binary==)- Parameters:
left- the first matrix (notnull, unaffected)right- the 2nd matrix (notnull, unaffected)- Returns:
trueif equal, otherwisefalse
-
minus
Return the negative of the specified vector. (native operator: unary-)- Parameters:
right- the input vector (notnull, unaffected)- Returns:
- a new vector
-
minus
Return the component-wise difference of the specified vectors. (native operator: binary-)- Parameters:
left- the base vector (notnull, unaffected)right- the offset to subtract (notnull, unaffected)- Returns:
- a new vector
-
minus
Return the component-wise difference of the specified vectors. (native operator: binary-)- Parameters:
left- the base vector (notnull, unaffected)right- the offset to subtract (notnull, unaffected)- Returns:
- a new vector
-
minus
Return the negative of the specified vector. (native operator: unary-)- Parameters:
right- the input vector (notnull, unaffected)- Returns:
- a new vector
-
minus
Return the component-wise difference of the specified vectors. (native operator: binary-)- Parameters:
left- the first vector (notnull, unaffected)right- the vector to subtract (notnull, unaffected)- Returns:
- a new vector
-
minusEquals
Subtract the 2nd argument from the first argument. (native operator: binary-=)- Parameters:
left- the accumulating vector (notnull, modified)right- the vector to subtract (notnull, unaffected)
-
notEqual
Test whether the specified colors are unequal. (native operator: binary!=)- Parameters:
left- the first color to test (notnull, unaffected)right- the 2nd color to test (notnull, unaffected)- Returns:
falseif equal,trueif unequal
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+)- Parameters:
left- the first vector (notnull, unaffected)right- the 2nd vector (notnull, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+)- Parameters:
left- the first vector (notnull, unaffected)right- the 2nd vector (notnull, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+)- Parameters:
left- the base vector (notnull, unaffected)right- the offset to add (notnull, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+)- Parameters:
left- the first vector (notnull, unaffected)right- the 2nd vector (notnull, unaffected)- Returns:
- a new vector
-
plus
Return the component-wise sum of the specified vectors. (native operator: binary+)- Parameters:
left- the first vector (notnull, unaffected)right- the 2nd vector (notnull, unaffected)- Returns:
- a new vector
-
plusEquals
Add the right argument to the left argument. (native operator: binary+=)- Parameters:
left- the accumulating vector (notnull, modified)right- the vector to add (notnull, unaffected)
-
plusEquals
Add the right argument to the left argument. (native operator: binary+=)- Parameters:
left- the accumulating vector (notnull, modified)right- the vector to add (notnull, unaffected)
-
plusEquals
Add the 2nd argument to the first argument. (native operator: binary+=)- Parameters:
left- the accumulating vector (notnull, modified)right- the vector to add (notnull, unaffected)
-
plusEquals
Add the 2nd argument to the first argument. (native operator: binary+=)- Parameters:
left- the accumulating vector (notnull, modified)right- the vector to add (notnull, unaffected)
-
slash
Return a scaled version of the specified vector. (native operator: binary/)- Parameters:
left- the input vector (notnull, 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 (notnull, 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 (notnull, modified)right- the denominator (notnull, unaffected)
-
slashEquals
Divide the left argument by the right argument. (native operator: binary/=)- Parameters:
left- the accumulating vector (notnull, modified)right- the denominator (notnull, unaffected)
-
star
Return a scaled version of the specified vector. (native operator: binary*)- Parameters:
left- the scale to applyright- the input vector (notnull, 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 (notnull, 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 (notnull, 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 (notnull, unaffected)right- the right factor (notnull, unaffected)- Returns:
- a new vector
-
star
Return the product of the specified matrices. (native operator: binary*)- Parameters:
left- the left factor (notnull, unaffected)right- the right factor (notnull, unaffected)- Returns:
- a new matrix
-
star
Return the product of the specified quaternions. (native operator: binary*)- Parameters:
left- the left factor (notnull, unaffected)right- the right factor (notnull, unaffected)- Returns:
- a new quaternion
-
star
Rotate the specified vector by the specified unit quaternion. (native operator: binary*)- Parameters:
left- the rotation to apply (notnull, normalized, unaffected)right- the vector to apply it to (notnull, unaffected)- Returns:
- a new vector
-
star
Return the product of the specified matrices. (native operator: binary*)- Parameters:
left- the left factor (notnull, unaffected)right- the right factor (notnull, unaffected)- Returns:
- a new matrix
-
star
Return the product of the specified matrices. (native operator: binary*)- Parameters:
left- the left factor (notnull, unaffected)right- the right factor (notnull, 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 (notnull, unaffected)right- the right factor (notnull, 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 (notnull, unaffected)right- the right factor (notnull, unaffected)- Returns:
- a new vector
-
star
Return a scaled version of the specified vector. (native operator: binary*)- Parameters:
left- the input vector (notnull, 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 (notnull, unaffected)right- the conjugate of the rotation to apply (notnull, normalized, unaffected)- Returns:
- a new vector
-
star
Return the component-wise product of the specified vectors. (native operator: binary*)- Parameters:
left- the first vector (notnull, unaffected)right- the 2nd vector (notnull, unaffected)- Returns:
- a new vector
-
starEquals
Scale the left argument by the right argument. (native operator: binary*=)- Parameters:
left- the accumulating vector (notnull, modified)right- the scale factor to apply (notnull, unaffected)
-