N - Type of nodeV - Type of vector, either 2D or 3D, implementing the Vector interfacepublic interface SmoothableGraphPath<N,V extends com.badlogic.gdx.math.Vector<V>> extends GraphPath<N>
PathSmoother.| Modifier and Type | Method and Description |
|---|---|
V |
getNodePosition(int index)
Returns the position of the node at the given index.
|
void |
swapNodes(int index1,
int index2)
Swaps the specified nodes of this path.
|
void |
truncatePath(int newLength)
Reduces the size of this path to the specified length (number of nodes).
|
V getNodePosition(int index)
index - the index of the node you want to know the positionvoid swapNodes(int index1,
int index2)
index1 - index of the first node to swapindex2 - index of the second node to swapvoid truncatePath(int newLength)
newLength - the new length