#include <SimpleMovingPoly.h>
|
| SimpleMovingPoly (const SimplePoly &start, const std::vector< Velocity > &vs) |
|
| SimpleMovingPoly (const SimplePoly &start, const Velocity &v) |
|
| SimpleMovingPoly (double b, double t) |
|
| SimpleMovingPoly (double b, double t, const std::string &units) |
|
| SimpleMovingPoly (const SimpleMovingPoly &p) |
|
SimpleMovingPoly | copy () const |
|
bool | addVertex (const Position &p, const Velocity &v) |
|
void | removeVertex (int i) |
|
void | setTop (double top) |
|
void | setBottom (double bot) |
|
bool | isLatLon () const |
|
SimplePoly | position (double dt) const |
|
Velocity | averageVelocity () const |
|
SimpleMovingPoly | linear (double dt) const |
|
MovingPolygon3D | getMovingPolygon (double time, const EuclideanProjection &proj) |
|
MovingPolygon3D | getMovingPolygon (const EuclideanProjection &proj) |
|
int | size () const |
|
bool | contains (const Position &p, double dt) const |
|
std::string | toString () const |
| **
|
|
std::vector< std::string > | toStringList (int vertex, bool trkgsvs, int precision) const |
|
A "stateful" version of a SimplePoly that includes velocity.
◆ SimpleMovingPoly() [1/3]
larcfm::SimpleMovingPoly::SimpleMovingPoly |
( |
double |
b, |
|
|
double |
t |
|
) |
| |
Constructor for a SimplePoly with predefined top and bottom altitudes.
- Parameters
-
b | Bottom altitude |
t | Top altitude |
Constructor for a SimplePoly with predefined top and bottom altitudes.
- Parameters
-
b | Bottom altitude |
t | Top Altitude |
◆ SimpleMovingPoly() [2/3]
larcfm::SimpleMovingPoly::SimpleMovingPoly |
( |
double |
b, |
|
|
double |
t, |
|
|
const std::string & |
units |
|
) |
| |
Constructor for a SimplePoly with predefined top and bottom altitudes.
- Parameters
-
b | Bottom altitude |
t | Top altitude |
units | units of altitude |
◆ SimpleMovingPoly() [3/3]
◆ averageVelocity()
Velocity larcfm::SimpleMovingPoly::averageVelocity |
( |
| ) |
const |
Return the average Velocity (at time 0).
- Returns
- velocity
Return the average Velocity (at time 0).
◆ contains()
bool larcfm::SimpleMovingPoly::contains |
( |
const Position & |
p, |
|
|
double |
dt |
|
) |
| const |
Return true if point p is within the polygon at time dt from now.
- Parameters
-
p | position |
dt | time increment |
- Returns
- true, if point is in polygon
Return true if point p is within the polygon at time dt from now.
◆ getMovingPolygon()
MovingPolygon3D larcfm::SimpleMovingPoly::getMovingPolygon |
( |
double |
time, |
|
|
const EuclideanProjection & |
proj |
|
) |
| |
This will return a moving polygon that starts at a time
- Parameters
-
time | start time |
proj | relevant projection |
- Returns
- moving polygon
This will return a moving polygon that starts at point i and ends at point i+1
- Parameters
-
- Returns
◆ make() [1/2]
◆ make() [2/2]
◆ position()
SimplePoly larcfm::SimpleMovingPoly::position |
( |
double |
dt | ) |
const |
Return the polygon projected to be at time dt (dt = 0 returns a copy of the base polygon)
- Parameters
-
- Returns
- polygon
Return the polygon projected to be at time dt (dt = 0 returns a copy of the base polygon)
The documentation for this class was generated from the following files: