Algorithm to compute various geometrical relation among geometrical objects. In particular functions to inspect following relations are implemented:
0) Distance between geometrical objects
1) Closest point of approach
2) Intersection points
3) Containment/Overlap of objects
4) Common Origin functions
5) Bounding Sphere functions
.
More...
#include <GeoAlgo.h>
Public Member Functions | |
std::vector< Point_t > | Intersection (const AABox_t &box, const HalfLine_t &line, bool back=false) const |
Intersection between a HalfLine and an AABox. More... | |
std::vector< Point_t > | Intersection (const HalfLine_t &line, const AABox_t &box, bool back=false) const |
Intersection between a HalfLine and an AABox. More... | |
std::vector< Point_t > | Intersection (const AABox_t &box, const LineSegment_t &l) const |
Intersection between LineSegment and an AABox. More... | |
std::vector< Point_t > | Intersection (const LineSegment_t &l, const AABox_t &box) const |
Intersection between LineSegment and an AABox. More... | |
std::vector< Point_t > | Intersection (const AABox_t &box, const Trajectory_t &trj) const |
Intersection between Trajectory and an AABox. More... | |
std::vector< Point_t > | Intersection (const Trajectory_t &trj, const AABox_t &box) const |
Intersection between Trajectory and an AABox. More... | |
LineSegment_t | BoxOverlap (const AABox_t &box, const HalfLine_t &line) const |
LineSegment sub-segment of HalfLine inside an AABox. More... | |
LineSegment_t | BoxOverlap (const HalfLine_t &line, const AABox_t &box) const |
LineSegment sub-segment of HalfLine inside an AABox. More... | |
Trajectory_t | BoxOverlap (const AABox_t &box, const Trajectory_t &trj) const |
Get Trajectory inside box given some input trajectory -> now assumes trajectory cannot exit and re-enter box. More... | |
Trajectory_t | BoxOverlap (const Trajectory_t &trj, const AABox_t &box) const |
Get Trajectory inside box given some input trajectory -> now assumes trajectory cannot exit and re-enter box. More... | |
double | SqDist (const Line_t &line, const Point_t &pt) const |
double | SqDist (const Point_t &pt, const Line_t &line) const |
Point_t | ClosestPt (const Line_t &line, const Point_t &pt) const |
Point_t | ClosestPt (const Point_t &pt, const Line_t &line) const |
double | SqDist (const Line_t &l1, const Line_t &l2, Point_t &L1, Point_t &L2) const |
double | SqDist (const Line_t &l1, const Line_t &l2) const |
double | SqDist (const HalfLine_t &l1, const HalfLine_t &l2, Point_t &L1, Point_t &L2) const |
double | SqDist (const HalfLine_t &l1, const HalfLine_t &l2) const |
double | SqDist (const LineSegment_t &seg1, const LineSegment_t &seg2, Point_t &c1, Point_t &c2) const |
LineSegment_t & LineSegment_t distance - keep track of points. More... | |
double | SqDist (const LineSegment_t &seg1, const LineSegment_t &seg2) const |
LineSegment & LineSegment, don't keep track of points. More... | |
double | SqDist (const LineSegment_t &seg, const Trajectory_t &trj, Point_t &c1, Point_t &c2) const |
LineSegment & Trajectory, keep track of points. More... | |
double | SqDist (const Trajectory_t &trj, const LineSegment_t &seg, Point_t &c1, Point_t &c2) const |
LineSegment & Trajectory, keep track of points. More... | |
double | SqDist (const Trajectory_t &trj, const LineSegment_t &seg) const |
LineSegment & Trajectory, don't keep track of points. More... | |
double | SqDist (const LineSegment_t &seg, const Trajectory_t &trj) const |
LineSegment & Trajectory, don't keep track of points. More... | |
double | SqDist (const Trajectory_t &trj1, const Trajectory_t &trj2, Point_t &c1, Point_t &c2) const |
Trajectory & Trajectory, keep track of points. More... | |
double | SqDist (const Trajectory_t &trj1, const Trajectory_t &trj2) const |
Trajectory & Trajectory, don't keep track of points. More... | |
double | SqDist (const LineSegment_t &seg, const std::vector< geoalgo::Trajectory_t > &trj, Point_t &c1, Point_t &c2, int &trackIdx) const |
LineSegment & vector of Trajectories, keep track of points. More... | |
double | SqDist (const std::vector< geoalgo::Trajectory_t > &trj, const LineSegment_t &seg, Point_t &c1, Point_t &c2, int &trackIdx) const |
LineSegment & vector of Trajectories, keep track of points. More... | |
double | SqDist (const std::vector< geoalgo::Trajectory_t > &trj, const LineSegment_t &seg) const |
LineSegment & vector of Trajectories, don't keep track of points. More... | |
double | SqDist (const LineSegment_t &seg, const std::vector< geoalgo::Trajectory_t > &trj) const |
LineSegment & vector of Trajectories, don't keep track of points. More... | |
double | SqDist (const HalfLine_t &hline, const Trajectory_t &trj, Point_t &c1, Point_t &c2) const |
HalfLine & Trajectory, keep track of points. More... | |
double | SqDist (const Trajectory_t &trj, const HalfLine_t &hline, Point_t &c1, Point_t &c2) const |
HalfLine & Trajectory, keep track of points. More... | |
double | SqDist (const Trajectory_t &trj, const HalfLine_t &hline) const |
HalfLine & Trajectory, don't keep track of points. More... | |
double | SqDist (const HalfLine_t &hline, const Trajectory_t &trj) const |
HalfLine & Trajectory, don't keep track of points. More... | |
double | SqDist (const Point_t &pt, const Trajectory_t &trj) const |
Point_t & Trajectory_t distance. More... | |
double | SqDist (const Trajectory_t &trj, const Point_t &pt) const |
Point_t & Trajectory_t distance. More... | |
Point_t | ClosestPt (const Point_t &pt, const Trajectory_t &trj) const |
Point_t & Trajectory_t closest point. More... | |
Point_t | ClosestPt (const Trajectory_t &trj, const Point_t &pt) const |
Point_t & Trajectory_t closest point. More... | |
Point_t | ClosestPt (const Point_t &pt, const Trajectory_t &trj, int &idx) const |
Point_t & Trajectory_t closest point. Keep track of index of segment. More... | |
Point_t | ClosestPt (const Trajectory_t &trj, const Point_t &pt, int &idx) const |
Point_t & Trajectory_t closest point. Keep track of index of segment. More... | |
double | SqDist (const Point_t &pt, const std::vector< geoalgo::Trajectory_t > &trj, int &trackIdx) const |
Point_t & Trajectory_t distance - keep track of which track. More... | |
double | SqDist (const std::vector< geoalgo::Trajectory_t > &trj, const Point_t &pt, int &trackIdx) const |
Point_t & Trajectory_t distance - keep track of which track. More... | |
double | SqDist (const Point_t &pt, const std::vector< geoalgo::Trajectory_t > &trj) const |
Point_t & Trajectory_t distance - don't keep track. More... | |
double | SqDist (const std::vector< geoalgo::Trajectory_t > &trj, const Point_t &pt) const |
Point_t & Trajectory_t distance - don't keep track. More... | |
Point_t | ClosestPt (const Point_t &pt, const std::vector< geoalgo::Trajectory_t > &trj, int &trackIdx) const |
Point_t & Trajectory_t closest point - keep track of which track is closest. More... | |
Point_t | ClosestPt (const std::vector< geoalgo::Trajectory_t > &trj, const Point_t &pt, int &trackIdx) const |
Point_t & Trajectory_t closest point - keep track of which track is closest. More... | |
Point_t | ClosestPt (const Point_t &pt, const std::vector< geoalgo::Trajectory_t > &trj) const |
Point_t & Trajectory_t closest point - don't keep track of which track is closest. More... | |
Point_t | ClosestPt (const std::vector< geoalgo::Trajectory_t > &trj, const Point_t &pt) const |
Point_t & Trajectory_t closest point - don't keep track of which track is closest. More... | |
double | SqDist (const Point_t &pt, const LineSegment_t &line) const |
Point & LineSegment_t distance. More... | |
double | SqDist (const LineSegment_t &line, const Point_t &pt) const |
Point & LineSegment distance. More... | |
Point_t | ClosestPt (const Point_t &pt, const LineSegment_t &line) const |
Point & LineSegment closest point. More... | |
Point_t | ClosestPt (const LineSegment_t &line, const Point_t &pt) const |
Point & LineSegment closest point. More... | |
double | SqDist (const Point_t &pt, const HalfLine_t &line) const |
Point & HalfLine distance. More... | |
double | SqDist (const HalfLine_t &line, const Point_t &pt) const |
Point & HalfLine distance. More... | |
Point_t | ClosestPt (const Point_t &pt, const HalfLine_t &line) const |
Point & HalfLine closest point. More... | |
Point_t | ClosestPt (const HalfLine_t &line, const Point_t &pt) const |
Point & HalfLine closest point. More... | |
double | SqDist (const HalfLine_t &hline, const LineSegment_t &seg, Point_t &L1, Point_t &L2) const |
double | SqDist (const LineSegment_t &seg, const HalfLine_t &hline, Point_t &L1, Point_t &L2) const |
double | SqDist (const HalfLine_t &hline, const LineSegment_t &seg) const |
double | SqDist (const LineSegment_t &seg, const HalfLine_t &hline) const |
double | SqDist (const Point_t &pt, const AABox_t &box) const |
Point & AABox distance. More... | |
double | SqDist (const AABox_t &box, const Point_t &pt) |
Point & AABox distance. More... | |
Point_t | ClosestPt (const Point_t &pt, const AABox_t &box) const |
Point & AABox closest point. More... | |
Point_t | ClosestPt (const AABox_t &box, const Point_t &pt) const |
Point & AABox closest point. More... | |
double | commonOrigin (const Line_t &lin1, const Line_t &lin2) const |
Common origin: Line Segment & Line Segment. Do not keep track of origin. More... | |
double | commonOrigin (const Line_t &lin1, const Line_t &lin2, Point_t &origin) const |
Common origin: Line Segment & Line Segment. Keep track of origin. More... | |
double | commonOrigin (const LineSegment_t &seg1, const LineSegment_t &seg2, bool backwards=false) const |
Common origin: Line Segment & Line Segment. Do not keep track of origin. More... | |
double | commonOrigin (const LineSegment_t &seg1, const LineSegment_t &seg2, Point_t &origin, bool backwards=false) const |
Common origin: Line Segment & Line Segment. Keep track of origin. More... | |
double | commonOrigin (const HalfLine_t &lin, const LineSegment_t &seg, bool backwards=false) const |
Common origin: Line Segment & Half Line. Do not keep track of origin. More... | |
double | commonOrigin (const HalfLine_t &lin, const LineSegment_t &seg, Point_t &origin, bool backwards=false) const |
Common origin: Line Segment & Line Segment. Keep track of origin. More... | |
double | commonOrigin (const LineSegment_t &seg, const HalfLine_t &lin, bool backwards=false) const |
Common origin: Line Segment & Half Line. Do not keep track of origin. More... | |
double | commonOrigin (const LineSegment_t &seg, const HalfLine_t &lin, Point_t &origin, bool backwards=false) const |
Common origin: Line Segment & Line Segment. Keep track of origin. More... | |
double | commonOrigin (const HalfLine_t &lin1, const HalfLine_t &lin2, bool backwards=false) const |
Common origin: Half Line & Half Line. Do not keep track of origin. More... | |
double | commonOrigin (const HalfLine_t &lin1, const HalfLine_t &lin2, Point_t &origin, bool backwards=false) const |
Common origin: Half Line & Half Line. Keep track of origin. More... | |
double | commonOrigin (const Trajectory_t &trj1, const Trajectory_t &trj2, bool backwards=false) const |
Common origin: Trajectory & Trajectory. Do not keep track of origin. More... | |
double | commonOrigin (const Trajectory_t &trj1, const Trajectory_t &trj2, Point_t &origin, bool backwards=false) const |
Common origin: Trajectory & Trajectory. Keep track of origin. More... | |
double | commonOrigin (const Trajectory_t &trj, const HalfLine_t &lin, bool backwards=false) const |
Common origin: Trajectory & Half Line. Do not keep track of origin. More... | |
double | commonOrigin (const Trajectory_t &trj, const HalfLine_t &lin, Point_t &origin, bool backwards=false) const |
Common origin: Trajectory & Half Line. Keep track of origin. More... | |
double | commonOrigin (const HalfLine_t &lin, const Trajectory_t &trj, bool backwards=false) const |
Common origin: Trajectory & Half Line. Do not keep track of origin. More... | |
double | commonOrigin (const HalfLine_t &lin, const Trajectory_t &trj, Point_t &origin, bool backwards=false) const |
Common origin: Trajectory & Half Line. Keep track of origin. More... | |
double | commonOrigin (const Trajectory_t &trj, const LineSegment_t &seg, bool backwards=false) const |
Common origin: Trajectory & Line Segment. Do not keep track of origin. More... | |
double | commonOrigin (const Trajectory_t &trj, const LineSegment_t &seg, Point_t &origin, bool backwards=false) const |
Common origin: Trajectory & Line Segment. Keep track of origin. More... | |
double | commonOrigin (const LineSegment_t &seg, const Trajectory_t &trj, bool backwards=false) const |
Common origin: Trajectory & Line Segment. Do not keep track of origin. More... | |
double | commonOrigin (const LineSegment_t &seg, const Trajectory_t &trj, Point_t &origin, bool backwards=false) const |
Common origin: Trajectory & Line Segment. Keep track of origin. More... | |
Sphere_t | boundingSphere (const std::vector< Point_t > &pts) const |
Protected Member Functions | |
double | _SqDist_ (const Line_t &l1, const Line_t &l2, Point_t &L1, Point_t &L2) const |
Line & Line distance w/o dimensionality check. More... | |
double | _SqDist_ (const HalfLine_t &l1, const HalfLine_t &l2, Point_t &L1, Point_t &L2) const |
HalfLine & HalfLine distance w/o dimensionality check. More... | |
double | _SqDist_ (const Point_t &pt, const LineSegment_t &line) const |
Point & LineSegment distance w/o dimensionality check. More... | |
double | _SqDist_ (const Point_t &pt, const Point_t &line_s, const Point_t &line_e) const |
Point & LineSegment distance w/o dimensionality check. More... | |
double | _SqDist_ (const LineSegment_t &line, const Point_t &pt) const |
Point & LineSegment distance w/o dimensionality check. More... | |
double | _SqDist_ (const HalfLine_t &hline, const LineSegment_t &seg, Point_t &L1, Point_t &L2) const |
HalfLine & LineSegment distance w/o dimensionality check. More... | |
double | _SqDist_ (const LineSegment_t &seg1, const LineSegment_t &seg2, Point_t &c1, Point_t &c2) const |
LineSegment & LineSegment distance w/o dimensionality check. More... | |
Point_t | _ClosestPt_ (const Point_t &pt, const LineSegment_t &line) const |
Point_t | _ClosestPt_ (const LineSegment_t &line, const Point_t &pt) const |
double | _SqDist_ (const Point_t &pt, const HalfLine_t &line) const |
Point & HalfLine distance w/o dimensionality check. More... | |
double | _SqDist_ (const HalfLine_t &line, const Point_t &pt) const |
Point & HalfLine distance w/o dimensionality check. More... | |
Point_t | _ClosestPt_ (const Point_t &pt, const HalfLine_t &line) const |
Point_t | _ClosestPt_ (const HalfLine_t &line, const Point_t &pt) const |
Point_t | _ClosestPt_ (const Line_t &line, const Point_t &pt) const |
Point_t | _ClosestPt_ (const Point_t &pt, const Line_t &line) const |
double | _SqDist_ (const Line_t &line, const Point_t &pt) const |
double | _SqDist_ (const Point_t &pt, const Line_t &line) const |
double | _SqDist_ (const Point_t &pt, const AABox_t &box) const |
Point & AABox distance w/o dimensionality check. More... | |
double | _SqDist_ (const AABox_t &box, const Point_t &pt) const |
Point & AABox distance w/o dimensionality check. More... | |
Point_t | _ClosestPt_ (const Point_t &pt, const AABox_t &box) const |
Point & AABox closest point w/o dimensionality check. More... | |
Point_t | _ClosestPt_ (const AABox_t &box, const Point_t &pt) const |
Point & AABox closest point w/o dimensionality check. More... | |
double | _commonOrigin_ (const Line_t &lin1, const Line_t &lin2, Point_t &origin) const |
Common origin: Line & Line. Keep track of origin. More... | |
double | _commonOrigin_ (const HalfLine_t &lin1, const HalfLine_t &lin2, Point_t &origin, bool backwards) const |
Common origin: Half Line & Half Line. Keep track of origin. More... | |
double | _commonOrigin_ (const HalfLine_t &lin, const LineSegment_t &seg, Point_t &origin, bool backwards) const |
Common origin: Line Segment & Half Line. Keep track of origin. More... | |
double | _commonOrigin_ (const LineSegment_t &seg1, const LineSegment_t &seg2, Point_t &origin, bool backwards) const |
Common origin: Line Segment & Line Segment. Keep track of origin. More... | |
double | _commonOrigin_ (const Trajectory_t &trj1, const Trajectory_t &trj2, Point_t &origin, bool backwards) const |
Common origin: Trajectory & Trajectory. Keep track of origin. More... | |
double | _commonOrigin_ (const Trajectory_t &trj, const LineSegment_t &seg, Point_t &origin, bool backwards) const |
Common origin: Trajectory & Line Segment. Keep track of origin. More... | |
double | _commonOrigin_ (const Trajectory_t &trj, const HalfLine_t &lin, Point_t &origin, bool backwards) const |
Common origin: Trajectory & Half Line. Keep track of origin. More... | |
Sphere_t | _boundingSphere_ (const std::vector< Point_t > &pts) const |
Sphere_t | _RemainingPoints_ (std::vector< Point_t > &remaining, const Sphere_t &thisSphere) const |
Sphere_t | _WelzlSphere_ (const std::vector< Point_t > &pts, int numPts, std::vector< Point_t > sosPts) const |
double | _Clamp_ (const double n, const double min, const double max) const |
Clamp function: checks if value out of bounds. More... | |
void | _Swap_ (double &tmin, double &tmax) const |
Swap two points if min & max are inverted. More... | |
Algorithm to compute various geometrical relation among geometrical objects. In particular functions to inspect following relations are implemented:
0) Distance between geometrical objects
1) Closest point of approach
2) Intersection points
3) Containment/Overlap of objects
4) Common Origin functions
5) Bounding Sphere functions
.
Most functions are taken from the reference Real-Time-Collision-Detection (RTCD): Ref: http://realtimecollisiondetection.net
|
protected |
Bounding Sphere problem Real-Time Collision Analysis 4.3.5 (Pg. 100) - WelzlSphere
Definition at line 1015 of file GeoAlgo.cxx.
|
protected |
Clamp function: checks if value out of bounds.
Definition at line 845 of file GeoAlgo.cxx.
|
protected |
Definition at line 388 of file GeoAlgo.cxx.
|
inlineprotected |
Definition at line 404 of file GeoAlgo.h.
|
protected |
Definition at line 420 of file GeoAlgo.cxx.
|
inlineprotected |
Definition at line 415 of file GeoAlgo.h.
Definition at line 444 of file GeoAlgo.cxx.
|
inlineprotected |
Definition at line 421 of file GeoAlgo.h.
|
inlineprotected |
Point & AABox closest point w/o dimensionality check.
Definition at line 438 of file GeoAlgo.h.
|
protected |
Common origin: Line & Line. Keep track of origin.
Common origin: Half Line & Half Line. Keep track of origin.
Definition at line 854 of file GeoAlgo.cxx.
|
protected |
Common origin: Half Line & Half Line. Keep track of origin.
Definition at line 906 of file GeoAlgo.cxx.
|
protected |
Common origin: Line Segment & Half Line. Keep track of origin.
Definition at line 965 of file GeoAlgo.cxx.
|
protected |
Common origin: Line Segment & Line Segment. Keep track of origin.
Definition at line 974 of file GeoAlgo.cxx.
|
protected |
Common origin: Trajectory & Trajectory. Keep track of origin.
Common origin: Trajectory & Trajectory/ Keep track of origin.
Definition at line 985 of file GeoAlgo.cxx.
|
protected |
Common origin: Trajectory & Line Segment. Keep track of origin.
Definition at line 995 of file GeoAlgo.cxx.
|
protected |
Common origin: Trajectory & Half Line. Keep track of origin.
Definition at line 1005 of file GeoAlgo.cxx.
|
protected |
Definition at line 1050 of file GeoAlgo.cxx.
|
protected |
Line & Line distance w/o dimensionality check.
Definition at line 193 of file GeoAlgo.cxx.
|
protected |
HalfLine & HalfLine distance w/o dimensionality check.
Definition at line 250 of file GeoAlgo.cxx.
|
inlineprotected |
Point & LineSegment distance w/o dimensionality check.
Definition at line 385 of file GeoAlgo.h.
|
protected |
|
inlineprotected |
Point & LineSegment distance w/o dimensionality check.
Definition at line 392 of file GeoAlgo.h.
|
protected |
HalfLine & LineSegment distance w/o dimensionality check.
Definition at line 306 of file GeoAlgo.cxx.
|
protected |
LineSegment & LineSegment distance w/o dimensionality check.
Definition at line 768 of file GeoAlgo.cxx.
|
protected |
Point & HalfLine distance w/o dimensionality check.
Definition at line 406 of file GeoAlgo.cxx.
|
inlineprotected |
Point & HalfLine distance w/o dimensionality check.
Definition at line 410 of file GeoAlgo.h.
Definition at line 432 of file GeoAlgo.cxx.
Definition at line 426 of file GeoAlgo.h.
Point & AABox distance w/o dimensionality check.
Definition at line 454 of file GeoAlgo.cxx.
Point & AABox distance w/o dimensionality check.
Definition at line 432 of file GeoAlgo.h.
|
inlineprotected |
|
protected |
Definition at line 1096 of file GeoAlgo.cxx.
|
inline |
Definition at line 373 of file GeoAlgo.h.
LineSegment_t geoalgo::GeoAlgo::BoxOverlap | ( | const AABox_t & | box, |
const HalfLine_t & | line | ||
) | const |
LineSegment sub-segment of HalfLine inside an AABox.
Definition at line 167 of file GeoAlgo.cxx.
|
inline |
LineSegment sub-segment of HalfLine inside an AABox.
Definition at line 72 of file GeoAlgo.h.
Trajectory_t geoalgo::GeoAlgo::BoxOverlap | ( | const AABox_t & | box, |
const Trajectory_t & | trj | ||
) | const |
Get Trajectory inside box given some input trajectory -> now assumes trajectory cannot exit and re-enter box.
Definition at line 181 of file GeoAlgo.cxx.
|
inline |
Get Trajectory inside box given some input trajectory -> now assumes trajectory cannot exit and re-enter box.
Definition at line 79 of file GeoAlgo.h.
Definition at line 93 of file GeoAlgo.h.
Definition at line 96 of file GeoAlgo.h.
|
inline |
Point_t & Trajectory_t closest point.
Definition at line 200 of file GeoAlgo.h.
|
inline |
Point_t & Trajectory_t closest point.
Definition at line 203 of file GeoAlgo.h.
Point_t geoalgo::GeoAlgo::ClosestPt | ( | const Point_t & | pt, |
const Trajectory_t & | trj, | ||
int & | idx | ||
) | const |
Point_t & Trajectory_t closest point. Keep track of index of segment.
Definition at line 575 of file GeoAlgo.cxx.
|
inline |
Point_t & Trajectory_t closest point. Keep track of index of segment.
Definition at line 208 of file GeoAlgo.h.
Point_t geoalgo::GeoAlgo::ClosestPt | ( | const Point_t & | pt, |
const std::vector< geoalgo::Trajectory_t > & | trj, | ||
int & | trackIdx | ||
) | const |
Point_t & Trajectory_t closest point - keep track of which track is closest.
Definition at line 604 of file GeoAlgo.cxx.
|
inline |
Point_t & Trajectory_t closest point - keep track of which track is closest.
Definition at line 229 of file GeoAlgo.h.
|
inline |
Point_t & Trajectory_t closest point - don't keep track of which track is closest.
Definition at line 232 of file GeoAlgo.h.
|
inline |
Point_t & Trajectory_t closest point - don't keep track of which track is closest.
Definition at line 235 of file GeoAlgo.h.
|
inline |
Point & LineSegment closest point.
Definition at line 249 of file GeoAlgo.h.
|
inline |
Point & LineSegment closest point.
Definition at line 252 of file GeoAlgo.h.
|
inline |
Point & HalfLine closest point.
Definition at line 265 of file GeoAlgo.h.
|
inline |
Point & HalfLine closest point.
Definition at line 268 of file GeoAlgo.h.
Definition at line 298 of file GeoAlgo.h.
Definition at line 301 of file GeoAlgo.h.
Common origin: Line Segment & Line Segment. Do not keep track of origin.
Definition at line 309 of file GeoAlgo.h.
|
inline |
Common origin: Line Segment & Line Segment. Keep track of origin.
Definition at line 312 of file GeoAlgo.h.
|
inline |
Common origin: Line Segment & Line Segment. Do not keep track of origin.
Definition at line 315 of file GeoAlgo.h.
|
inline |
Common origin: Line Segment & Line Segment. Keep track of origin.
Definition at line 318 of file GeoAlgo.h.
|
inline |
Common origin: Line Segment & Half Line. Do not keep track of origin.
Definition at line 321 of file GeoAlgo.h.
|
inline |
Common origin: Line Segment & Line Segment. Keep track of origin.
Definition at line 324 of file GeoAlgo.h.
|
inline |
Common origin: Line Segment & Half Line. Do not keep track of origin.
Definition at line 327 of file GeoAlgo.h.
|
inline |
Common origin: Line Segment & Line Segment. Keep track of origin.
Definition at line 330 of file GeoAlgo.h.
|
inline |
Common origin: Half Line & Half Line. Do not keep track of origin.
Definition at line 333 of file GeoAlgo.h.
|
inline |
Common origin: Half Line & Half Line. Keep track of origin.
Definition at line 336 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Trajectory. Do not keep track of origin.
Definition at line 339 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Trajectory. Keep track of origin.
Definition at line 342 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Half Line. Do not keep track of origin.
Definition at line 345 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Half Line. Keep track of origin.
Definition at line 348 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Half Line. Do not keep track of origin.
Definition at line 351 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Half Line. Keep track of origin.
Definition at line 354 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Line Segment. Do not keep track of origin.
Definition at line 357 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Line Segment. Keep track of origin.
Definition at line 360 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Line Segment. Do not keep track of origin.
Definition at line 363 of file GeoAlgo.h.
|
inline |
Common origin: Trajectory & Line Segment. Keep track of origin.
Definition at line 366 of file GeoAlgo.h.
std::vector< Point_t > geoalgo::GeoAlgo::Intersection | ( | const AABox_t & | box, |
const HalfLine_t & | line, | ||
bool | back = false |
||
) | const |
Intersection between a HalfLine and an AABox.
Definition at line 11 of file GeoAlgo.cxx.
|
inline |
Intersection between a HalfLine and an AABox.
Definition at line 54 of file GeoAlgo.h.
std::vector< Point_t > geoalgo::GeoAlgo::Intersection | ( | const AABox_t & | box, |
const LineSegment_t & | l | ||
) | const |
Intersection between LineSegment and an AABox.
Definition at line 113 of file GeoAlgo.cxx.
|
inline |
Intersection between LineSegment and an AABox.
Definition at line 60 of file GeoAlgo.h.
std::vector< Point_t > geoalgo::GeoAlgo::Intersection | ( | const AABox_t & | box, |
const Trajectory_t & | trj | ||
) | const |
Intersection between Trajectory and an AABox.
Definition at line 136 of file GeoAlgo.cxx.
|
inline |
Intersection between Trajectory and an AABox.
Definition at line 66 of file GeoAlgo.h.
Definition at line 87 of file GeoAlgo.h.
Definition at line 90 of file GeoAlgo.h.
|
inline |
Definition at line 104 of file GeoAlgo.h.
Definition at line 107 of file GeoAlgo.h.
|
inline |
Definition at line 115 of file GeoAlgo.h.
|
inline |
Definition at line 118 of file GeoAlgo.h.
|
inline |
LineSegment_t & LineSegment_t distance - keep track of points.
Definition at line 126 of file GeoAlgo.h.
|
inline |
LineSegment & LineSegment, don't keep track of points.
Definition at line 129 of file GeoAlgo.h.
double geoalgo::GeoAlgo::SqDist | ( | const LineSegment_t & | seg, |
const Trajectory_t & | trj, | ||
Point_t & | c1, | ||
Point_t & | c2 | ||
) | const |
LineSegment & Trajectory, keep track of points.
Definition at line 634 of file GeoAlgo.cxx.
|
inline |
LineSegment & Trajectory, keep track of points.
Definition at line 139 of file GeoAlgo.h.
|
inline |
LineSegment & Trajectory, don't keep track of points.
Definition at line 142 of file GeoAlgo.h.
|
inline |
LineSegment & Trajectory, don't keep track of points.
Definition at line 145 of file GeoAlgo.h.
double geoalgo::GeoAlgo::SqDist | ( | const Trajectory_t & | trj1, |
const Trajectory_t & | trj2, | ||
Point_t & | c1, | ||
Point_t & | c2 | ||
) | const |
Trajectory & Trajectory, keep track of points.
Definition at line 667 of file GeoAlgo.cxx.
|
inline |
Trajectory & Trajectory, don't keep track of points.
Definition at line 155 of file GeoAlgo.h.
double geoalgo::GeoAlgo::SqDist | ( | const LineSegment_t & | seg, |
const std::vector< geoalgo::Trajectory_t > & | trj, | ||
Point_t & | c1, | ||
Point_t & | c2, | ||
int & | trackIdx | ||
) | const |
LineSegment & vector of Trajectories, keep track of points.
Definition at line 736 of file GeoAlgo.cxx.
|
inline |
LineSegment & vector of Trajectories, keep track of points.
Definition at line 165 of file GeoAlgo.h.
|
inline |
LineSegment & vector of Trajectories, don't keep track of points.
Definition at line 168 of file GeoAlgo.h.
|
inline |
LineSegment & vector of Trajectories, don't keep track of points.
Definition at line 171 of file GeoAlgo.h.
double geoalgo::GeoAlgo::SqDist | ( | const HalfLine_t & | hline, |
const Trajectory_t & | trj, | ||
Point_t & | c1, | ||
Point_t & | c2 | ||
) | const |
HalfLine & Trajectory, keep track of points.
Definition at line 702 of file GeoAlgo.cxx.
|
inline |
HalfLine & Trajectory, keep track of points.
Definition at line 181 of file GeoAlgo.h.
|
inline |
HalfLine & Trajectory, don't keep track of points.
Definition at line 184 of file GeoAlgo.h.
|
inline |
HalfLine & Trajectory, don't keep track of points.
Definition at line 187 of file GeoAlgo.h.
double geoalgo::GeoAlgo::SqDist | ( | const Point_t & | pt, |
const Trajectory_t & | trj | ||
) | const |
Point_t & Trajectory_t distance.
Definition at line 523 of file GeoAlgo.cxx.
|
inline |
Point_t & Trajectory_t distance.
Definition at line 197 of file GeoAlgo.h.
double geoalgo::GeoAlgo::SqDist | ( | const Point_t & | pt, |
const std::vector< geoalgo::Trajectory_t > & | trj, | ||
int & | trackIdx | ||
) | const |
Point_t & Trajectory_t distance - keep track of which track.
Definition at line 548 of file GeoAlgo.cxx.
|
inline |
Point_t & Trajectory_t distance - keep track of which track.
Definition at line 218 of file GeoAlgo.h.
|
inline |
Point_t & Trajectory_t distance - don't keep track.
Definition at line 221 of file GeoAlgo.h.
|
inline |
Point_t & Trajectory_t distance - don't keep track.
Definition at line 224 of file GeoAlgo.h.
|
inline |
Point & LineSegment_t distance.
Definition at line 243 of file GeoAlgo.h.
|
inline |
Point & LineSegment distance.
Definition at line 246 of file GeoAlgo.h.
|
inline |
Definition at line 259 of file GeoAlgo.h.
|
inline |
Definition at line 262 of file GeoAlgo.h.
|
inline |
Definition at line 276 of file GeoAlgo.h.
|
inline |
Definition at line 279 of file GeoAlgo.h.
|
inline |
Definition at line 282 of file GeoAlgo.h.
|
inline |
Definition at line 285 of file GeoAlgo.h.
Definition at line 292 of file GeoAlgo.h.
Definition at line 295 of file GeoAlgo.h.