Class NestedPath
java.lang.Object
zombie.characters.animals.pathfind.NestedPath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetClosestPointOn(float px, float py, org.joml.Vector2f out) floatgetDistanceOfPointFromStart(int pointIndex) floatintbooleangetPointOn(float t, org.joml.Vector2f out) floatgetX(int index) floatgetY(int index)
-
Constructor Details
-
NestedPath
public NestedPath()
-
-
Method Details
-
getNumPoints
public int getNumPoints() -
getX
public float getX(int index) -
getY
public float getY(int index) -
getLength
public float getLength() -
getPointOn
public boolean getPointOn(float t, org.joml.Vector2f out) -
getClosestPointOn
public float getClosestPointOn(float px, float py, org.joml.Vector2f out) -
getDistanceOfPointFromStart
public float getDistanceOfPointFromStart(int pointIndex)
-