T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic static class LinePath.Segment<T extends com.badlogic.gdx.math.Vector<T>>
extends java.lang.Object
Segment connects two consecutive waypoints of a LinePath.| Modifier and Type | Method and Description |
|---|---|
T |
getBegin()
Returns the start point of this segment.
|
float |
getCumulativeLength()
Returns the cumulative length from the first waypoint of the
LinePath this segment belongs to. |
T |
getEnd()
Returns the end point of this segment.
|
float |
getLength()
Returns the length of this segment.
|
public T getBegin()
public T getEnd()
public float getLength()
public float getCumulativeLength()
LinePath this segment belongs to.