Interface ConstIndexedTriangleNoMaterial
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Subinterfaces:
ConstIndexedTriangle
- All Known Implementing Classes:
IndexedTriangle,IndexedTriangleNoMaterial
Read-only access to an
IndexedTriangleNoMaterial. (native type: const
IndexedTriangleNoMaterial)-
Method Summary
Modifier and TypeMethodDescriptionintgetIdx(int cornerIndex) Return the mesh-vertex index of the specified corner.booleanTest whether the current triangle is equivalent to the argument.voidWrite all 3 indices to the specified buffer and advance the buffer's position by 3.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getIdx
int getIdx(int cornerIndex) Return the mesh-vertex index of the specified corner. The triangle is unaffected.- Parameters:
cornerIndex- which corner to access (0, 1, or 2)- Returns:
- the index of the vertex in the mesh
-
isEqual
Test whether the current triangle is equivalent to the argument. Both triangles are unaffected.- Parameters:
other- the triangle to compare with (notnull, unaffected)- Returns:
trueif equal,falseif unequal
-
put
Write all 3 indices to the specified buffer and advance the buffer's position by 3. The triangle is unaffected.- Parameters:
storeBuffer- the destination buffer (notnull)
-