Interface ConstRStrand
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Subinterfaces:
ConstSStrand
Read-only access to an
RStrand. (native type:
const HairSettings::RStrand)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the index of the ending vertex.intReturn the index of the starting vertex.intReturn the number of vertices in the strand.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getEndVtx
int getEndVtx()Return the index of the ending vertex. The strand is unaffected.- Returns:
- the vertex index
-
getStartVtx
int getStartVtx()Return the index of the starting vertex. The strand is unaffected.- Returns:
- the vertex index
-
vertexCount
int vertexCount()Return the number of vertices in the strand.- Returns:
- the count
-