- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
A variable-length list (array) of strand vertices. (native type:
Array<HairSettings::SVertex>)-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate an empty list.SVertexList(SVertex... vertices) Instantiate a list from a fixed-length array. -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Count how many vertices the currently allocated storage can hold.voiderase(int startIndex, int stopIndex) Remove all vertices in the specified range of indices.get(int elementIndex) Access the vertex at the specified index.voidresize(int numVertices) Extend or truncate the list.voidPut the specified vertex at the specified index.intsize()Count how many vertices are in the list.Methods inherited from class com.github.stephengold.joltjni.template.Array
clear, empty, erase, pushBack, toListMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
SVertexList
public SVertexList()Instantiate an empty list. -
SVertexList
Instantiate a list from a fixed-length array.- Parameters:
vertices- the vertices to include in the list
-
-
Method Details
-
capacity
public int capacity()Count how many vertices the currently allocated storage can hold. The list is unaffected. -
erase
public void erase(int startIndex, int stopIndex) Remove all vertices in the specified range of indices. -
get
Access the vertex at the specified index. -
resize
public void resize(int numVertices) Extend or truncate the list. -
set
Put the specified vertex at the specified index. -
size
public int size()Count how many vertices are in the list. The list is unaffected.
-