public class Ilv3DTrajectory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Ilv3DTrajectory.Point
Single trajectory point.
|
Constructor and Description |
---|
Ilv3DTrajectory()
Creates a trajectory with no initial points.
|
Ilv3DTrajectory(Ilv3DTrajectory.Point[] points)
Creates a trajectory with the initial table of points
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(Ilv3DTrajectory.Point p)
Adds a trajectory point.
|
Ilv3DTrajectory.Point |
computeTrajectoryPoint(double seconds)
Computes the correct trajectory point for the selected time.
|
double |
getEndTime()
Returns time at which a point is reached.
|
Ilv3DTrajectory.Point |
getPoint(int idx)
Returns the Ilv3DTrajectory.Point at the specified index in the trajectory.
|
int |
getPointCount()
Returns the number of points in the trajectory.
|
double |
getPointTime(int idx)
Returns time at which a point is reached.
|
public Ilv3DTrajectory()
addPoint(Point)
public Ilv3DTrajectory(Ilv3DTrajectory.Point[] points)
points
- array of initial points.public void addPoint(Ilv3DTrajectory.Point p)
p
- The point to add.public int getPointCount()
public Ilv3DTrajectory.Point getPoint(int idx)
idx
- index of the trajectory point.public double getPointTime(int idx)
idx
- index of the trajectory point.public double getEndTime()
public Ilv3DTrajectory.Point computeTrajectoryPoint(double seconds)
seconds
- time in seconds since the beginning of the trajectory.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.