org.vrspace.server
Class Path
java.lang.Object
org.vrspace.server.Path
- public class Path
- extends java.lang.Object
Path is set of waypoints and times to travel between them.
Constructor Summary |
Path()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Path
public Path()
add
public void add(Waypoint p)
insert
public void insert(Waypoint p,
int pos)
remove
public void remove(Waypoint p)
remove
public void remove(int pos)
size
public int size()
getPoint
public Waypoint getPoint(float time)
- Returns waypoint for specified time, relative to path start
Uses linear interpolation for translation, and last orientation.
setSize
public void setSize(int size)
- Set path size: remove viewpoints untill size equals new size.
toString
public java.lang.String toString()