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 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 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 (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:
trueif equal,falseif 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:
trueif 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:
falseif equal,trueif 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)
-