| makVrv::DtRotorWashTrailPoints::DtRotorWashTrailPoints |
( |
| ) |
|
CTOR - Default max is 0 points.
| makVrv::DtRotorWashTrailPoints::DtRotorWashTrailPoints |
( |
int |
maxPoints | ) |
|
Specify how many points to keep track of.
| makVrv::DtRotorWashTrailPoints::~DtRotorWashTrailPoints |
( |
| ) |
|
| void makVrv::DtRotorWashTrailPoints::reset |
( |
| ) |
|
Zero out the array of points, clear dist.
Add a point to the array of points, keep track of the total distance of all the points so far, update distance for previous head point to the incoming point Larger times (newer time) are at the front
| const int makVrv::DtRotorWashTrailPoints::numPoints |
( |
| ) |
const |
How many points we have (fills up to max points pretty fast)
| DtTime makVrv::DtRotorWashTrailPoints::timeRange |
( |
| ) |
|
How much time does this trail cover?
| bool makVrv::DtRotorWashTrailPoints::isTimeInRange |
( |
DtTime |
time | ) |
|
Is the time (ex. 10 seconds) in this array of times and points?
| void makVrv::DtRotorWashTrailPoints::getPosAtTimeOffset |
( |
DtTime |
timeOffset, |
|
|
DtVector & |
heliPos, |
|
|
DtVector & |
groundPos |
|
) |
| const |
Get linearly interpolated helicopter and ground positions based on a time offset in seconds ex. t=0.5, pt1: (0,(0,0,0)), pt2: (1,(3,0,0)) return (1.5,0,0) <0 return head, >last time returns tail.
| void makVrv::DtRotorWashTrailPoints::getPosAtDistOffset |
( |
float |
distOffset, |
|
|
DtVector & |
heliPos, |
|
|
DtVector & |
groundPos |
|
) |
| const |
Get linearly interpolated helicopter and ground positions based on a distance offset in meters (going backwards from the last rotorwash position)
| void makVrv::DtRotorWashTrailPoints::printPoints |
( |
| ) |
const |
Print out the (time, pos) for the entire trail.
| const float& makVrv::DtRotorWashTrailPoints::totalGroundDist |
( |
| ) |
const |
If you add up all the distances between the points this is the distance you get.
| const int& makVrv::DtRotorWashTrailPoints::maxPoints |
( |
| ) |
const |
Maximum trail points allowed (can't dynamically set it)
| int makVrv::DtRotorWashTrailPoints::myMaxPoints |
|
protected |
| float makVrv::DtRotorWashTrailPoints::myTotalGroundDist |
|
protected |
The documentation for this class was generated from the following file: