|
pcod-common v1.0.0
Shared preprocessing and postprocessing for point-cloud object detection
|
#include <bounding_box.hpp>
Public Member Functions | |
| Line (const BoundingBoxVertex &v1, const BoundingBoxVertex &v2) | |
| float | operator() (const BoundingBoxVertex &p) const |
| BoundingBoxVertex | intersection (const Line &other) const |
Public Attributes | |
| float | a |
| X coefficient. | |
| float | b |
| Y coefficient. | |
| float | c |
| Constant term. | |
Implicit two-dimensional line equation a*x + b*y + c = 0.
Definition at line 37 of file bounding_box.hpp.
|
inline |
Construct the line passing through two vertices.
| v1 | First vertex. |
| v2 | Second vertex. |
Definition at line 46 of file bounding_box.hpp.
References a, b, c, pcod_common::BoundingBoxVertex::cross(), pcod_common::BoundingBoxVertex::x, and pcod_common::BoundingBoxVertex::y.
|
inline |
| other | Non-parallel line. |
Definition at line 56 of file bounding_box.hpp.
Referenced by pcod_common::BoundingBox::intersection_area().
|
inline |
| p | Evaluation point. |
Definition at line 53 of file bounding_box.hpp.
References a, b, c, pcod_common::BoundingBoxVertex::x, and pcod_common::BoundingBoxVertex::y.
| float pcod_common::Line::a |
X coefficient.
Definition at line 38 of file bounding_box.hpp.
Referenced by intersection(), Line(), and operator()().
| float pcod_common::Line::b |
Y coefficient.
Definition at line 39 of file bounding_box.hpp.
Referenced by intersection(), Line(), and operator()().
| float pcod_common::Line::c |
Constant term.
Definition at line 40 of file bounding_box.hpp.
Referenced by intersection(), Line(), and operator()().