#include <CSOPointInPolygonChecker.h>
Classes | |
| struct | BinnedLine |
Public Member Functions | |
| CSOPointInPolygonChecker (CSO *cso) | |
| Sets the polygon based on a CSO. | |
| CSOPointInPolygonChecker (std::vector< Vector3 > &pathPoints, const Vector3 &normal, bool overwritePathPoints=false) | |
| Sets the polygon based on a list of points and a normal. | |
| ~CSOPointInPolygonChecker () | |
| Destructor. | |
| void | set (CSO *cso) |
| Sets the polygon based on a CSO. | |
| void | set (std::vector< Vector3 > &pathPoints, const Vector3 &normal, bool overwritePathPoints=false) |
| Sets the polygon based on a list of points and a normal. | |
| bool | isPointInsidePolygon (const Vector3 &pos) const |
| Checks if a given point is inside the polygon. | |
The algorithm uses a bounding box test and a binning along the y-axis of the line segments.
Definition at line 25 of file CSOPointInPolygonChecker.h.
| ml::CSOPointInPolygonChecker::CSOPointInPolygonChecker | ( | CSO * | cso | ) |
Sets the polygon based on a CSO.
| ml::CSOPointInPolygonChecker::CSOPointInPolygonChecker | ( | std::vector< Vector3 > & | pathPoints, | |
| const Vector3 & | normal, | |||
| bool | overwritePathPoints = false | |||
| ) |
Sets the polygon based on a list of points and a normal.
If overwritePathPoints is true the given pathPoints vector will be overwritten by the projected polygon points!
| ml::CSOPointInPolygonChecker::~CSOPointInPolygonChecker | ( | ) | [inline] |
| bool ml::CSOPointInPolygonChecker::isPointInsidePolygon | ( | const Vector3 & | pos | ) | const |
Checks if a given point is inside the polygon.
| void ml::CSOPointInPolygonChecker::set | ( | std::vector< Vector3 > & | pathPoints, | |
| const Vector3 & | normal, | |||
| bool | overwritePathPoints = false | |||
| ) |
Sets the polygon based on a list of points and a normal.
If overwritePathPoints is true the given pathPoints vector will be overwritten by the projected polygon points!
1.5.8