ICAROUS
|
#include <MovingPolygon2D.h>
Public Member Functions | |
MovingPolygon2D (std::vector< Vect2 > polystart, std::vector< Vect2 > polyvel, double tend) | |
MovingPolygon2D (const Poly2D &polygon, const Vect2 &polyvel, double tend) | |
MovingPolygon2D (const Poly2D &polygon, const std::vector< Vect2 > &vels, double tend_d) | |
Poly2D | position (double t) const |
bool | isStable () const |
int | size () const |
MovingPolygon2D | reverseOrder () const |
std::string | toString () const |
std::vector< Vect2 > | getPolyvel () const |
std::vector< Vect2 > | getPolystart () const |
double | getTend () const |
void | setPolystart (const std::vector< Vect2 > &polystart) |
void | setPolyvel (const std::vector< Vect2 > &polyvel) |
void | setTend (double tend) |
Public Attributes | |
std::vector< Vect2 > | polystart |
std::vector< Vect2 > | polyvel |
double | tend |
bool | knownStable |
bool | knownUnstable |
Polygon detection. Based on UNVERIFIED PVS code.
A MovingPolygon2D contains a list of Vect2 vertices and a corresponding list of velocities. These lists must be the same size.
bool larcfm::MovingPolygon2D::isStable | ( | ) | const |
return true if this polygon is "stable", i.e., all vector velocities are the same
MovingPolygon2D larcfm::MovingPolygon2D::reverseOrder | ( | ) | const |
Reverse order of vertices