57 float w =
a * other.
b -
b * other.
a;
BoundingBoxVertex operator-(const BoundingBoxVertex &v) const
float cross(const BoundingBoxVertex &v) const
BoundingBoxVertex(float x_in=0.0f, float y_in=0.0f)
BoundingBoxVertex operator+(const BoundingBoxVertex &v) const
float length
Length along the local X axis.
std::vector< BoundingBoxVertex > rectangle_vertices() const
bool has_velocity
Whether velocity components are valid.
float intersection_area(const BoundingBox &other) const
float v_y
Y velocity when has_velocity is true.
std::array< float, 2 > center
XY center in metres.
float height
Height along the Z axis.
float z
Z center in metres.
float width
Width along the local Y axis.
float v_x
X velocity when has_velocity is true.
std::vector< ClassificationEntry > classification
Ranked semantic predictions.
float existence_probability
Detection confidence.
bool overlaps(const BoundingBox &other, float iou_threshold) const
float yaw
Heading in radians.
std::size_t class_idx
Zero-based model class index.
float score
Confidence assigned to the class.
BoundingBoxVertex intersection(const Line &other) const
float operator()(const BoundingBoxVertex &p) const
Line(const BoundingBoxVertex &v1, const BoundingBoxVertex &v2)