java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.RStrand
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstRStrand,AutoCloseable,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
SStrand
A rendered strand of hair. (native type:
HairSettings::RStrand)-
Constructor Summary
Constructors -
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 class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
RStrand
public RStrand()Instantiate a default strand. -
RStrand
public RStrand(int startVertex, int endVertex) Instantiate a strand with the specified vertices.- Parameters:
startVertex- the index of the first vertex (≥0)endVertex- the index of the last vertex (≥0)
-
-
Method Details
-
getEndVtx
public int getEndVtx()Return the index of the ending vertex. The strand is unaffected. (native attribute: mEndVtx)- Specified by:
getEndVtxin interfaceConstRStrand- Returns:
- the vertex index
-
getStartVtx
public int getStartVtx()Return the index of the starting vertex. The strand is unaffected. (native attribute: mStartVtx)- Specified by:
getStartVtxin interfaceConstRStrand- Returns:
- the vertex index
-
vertexCount
public int vertexCount()Return the number of vertices in the strand.- Specified by:
vertexCountin interfaceConstRStrand- Returns:
- the count
-