atavism.server.pathing
Class PathSpline
java.lang.Object
atavism.server.pathing.PathInterpolator
atavism.server.pathing.PathSpline
public class PathSpline
- extends PathInterpolator
Constructor Summary |
PathSpline(OID oid,
long startTime,
float speed,
java.lang.String terrainString,
java.util.List<Point> path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
directionTimeOffset
protected final float directionTimeOffset
- See Also:
- Constant Field Values
timeVector
protected float[] timeVector
totalTime
protected float totalTime
log
protected static Logger log
logAll
protected static boolean logAll
PathSpline
public PathSpline(OID oid,
long startTime,
float speed,
java.lang.String terrainString,
java.util.List<Point> path)
toString
public java.lang.String toString()
- Specified by:
toString
in class PathInterpolator
interpolate
public PathLocAndDir interpolate(float t)
- Specified by:
interpolate
in class PathInterpolator
basisFactor
protected float basisFactor(int degree,
float t)
evalPoint
protected AOVector evalPoint(int pointNumber,
float t)
evalDirection
protected AOVector evalDirection(AOVector p,
int pointNumber,
float t)