ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
larcfm::MovingPolygon2D Class Reference

#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< Vect2getPolyvel () const
 
std::vector< Vect2getPolystart () 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< Vect2polystart
 
std::vector< Vect2polyvel
 
double tend
 
bool knownStable
 
bool knownUnstable
 

Detailed Description

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.

Member Function Documentation

◆ isStable()

bool larcfm::MovingPolygon2D::isStable ( ) const

return true if this polygon is "stable", i.e., all vector velocities are the same

Returns
true, if stable

◆ reverseOrder()

MovingPolygon2D larcfm::MovingPolygon2D::reverseOrder ( ) const

Reverse order of vertices

Returns
new polygon

The documentation for this class was generated from the following files: