|
JeVoisBase
1.23
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
#include <jevoisbase/Components/RoadFinder/Types.H>#include <jevoisbase/Components/RoadFinder/Promotions.H>#include <cmath>#include <string>#include <vector>

Go to the source code of this file.
Classes | |
| class | Point2D< T > |
| This is a basic class to encode 2D integer coordinates. More... | |
Functions | |
| template<class T , class U > | |
| bool | operator== (const Point2D< T > &p1, const Point2D< U > &p2) |
| == operator | |
| template<class T , class U > | |
| bool | operator!= (const Point2D< T > &p1, const Point2D< U > &p2) |
| != operator | |
| template<class T , class U > | |
| bool | operator> (const Point2D< T > &p1, const Point2D< U > &p2) |
| |
| template<class T , class U > | |
| bool | operator< (const Point2D< T > &p1, const Point2D< U > &p2) |
| < operator | |
| template<class T > | |
| bool | pnpoly (const std::vector< Point2D< T > > &polygon, const Point2D< T > &p) |
| Is a point inside a polygon? | |
| template<class T > | |
| Point2D< T > | centroid (const std::vector< Point2D< T > > &polygon) |
| Where is the center of mass of a polygon? | |
| template<class T > | |
| double | area (const std::vector< Point2D< T > > &polygon, const bool getsigned=false) |
| What is the area of a polygon? | |
| template<class T > | |
| double | angleMeasure (const Point2D< T > &A, const Point2D< T > &B, const Point2D< T > &C) |
| What is the measure (in radians, signed -pi to pi) of angle BAC? | |
| template<class T > | |
| bool | pnTriangle (const Point2D< T > &A, const Point2D< T > &B, const Point2D< T > &C, const Point2D< T > &P) |
| determine if a point P is inside a triangle with vertices A,B,C | |
|
inline |
What is the measure (in radians, signed -pi to pi) of angle BAC?
Definition at line 434 of file Point2D.H.
References Point2D< T >::distance(), Point2D< T >::i, and Point2D< T >::j.
|
inline |
What is the area of a polygon?
Definition at line 422 of file Point2D.H.
References area().
Referenced by area(), BlobDetector::detect(), FirstVision::detect(), ArUcoBlob::process(), and ObjectTracker::process().
|
inline |
!= operator
Definition at line 326 of file Point2D.H.
References Point2D< T >::i, and Point2D< T >::j.
|
inline |
< operator
Definition at line 336 of file Point2D.H.
References Point2D< T >::i, and Point2D< T >::j.
|
inline |
== operator
Definition at line 321 of file Point2D.H.
References Point2D< T >::i, and Point2D< T >::j.
|
inline |
operator
Definition at line 331 of file Point2D.H.
References Point2D< T >::i, and Point2D< T >::j.
|
inline |
Is a point inside a polygon?
Definition at line 395 of file Point2D.H.
References Point2D< T >::i, and Point2D< T >::j.
|
inline |
determine if a point P is inside a triangle with vertices A,B,C
Definition at line 451 of file Point2D.H.
References Point2D< T >::i, and Point2D< T >::j.