Oriented bounding box (OBB) parameterized by center, size, and rotation angle.
More...
#include <object.hpp>
|
| | Obb ()=default |
| | Obb (float cx, float cy, float w, float h, float angle) |
| | Construct an Obb with center, size, and angle.
|
| Obb & | operator= (const Obb &other) |
| float | area () const |
| | Returns the area of the oriented bounding box.
|
|
| float | cx = 0.0f |
| | Center x-coordinate.
|
| float | cy = 0.0f |
| | Center y-coordinate.
|
| float | w = 0.0f |
| | Width of the box.
|
| float | h = 0.0f |
| | Height of the box.
|
| float | angle = 0.0f |
| | Rotation angle in degrees.
|
Oriented bounding box (OBB) parameterized by center, size, and rotation angle.
Definition at line 86 of file object.hpp.
◆ Obb() [1/2]
| ReUseX::vision::common::object::Obb::Obb |
( |
| ) |
|
|
default |
◆ Obb() [2/2]
| ReUseX::vision::common::object::Obb::Obb |
( |
float | cx, |
|
|
float | cy, |
|
|
float | w, |
|
|
float | h, |
|
|
float | angle ) |
Construct an Obb with center, size, and angle.
References angle, cx, cy, h, and w.
◆ area()
| float ReUseX::vision::common::object::Obb::area |
( |
| ) |
const |
|
inline |
Returns the area of the oriented bounding box.
Definition at line 101 of file object.hpp.
References h, and w.
◆ operator=()
| Obb & ReUseX::vision::common::object::Obb::operator= |
( |
const Obb & | other | ) |
|
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Obb & | obb ) |
|
friend |
◆ angle
| float ReUseX::vision::common::object::Obb::angle = 0.0f |
Rotation angle in degrees.
Definition at line 91 of file object.hpp.
Referenced by Obb().
◆ cx
| float ReUseX::vision::common::object::Obb::cx = 0.0f |
◆ cy
| float ReUseX::vision::common::object::Obb::cy = 0.0f |
| float ReUseX::vision::common::object::Obb::h = 0.0f |
| float ReUseX::vision::common::object::Obb::w = 0.0f |
The documentation for this struct was generated from the following file:
- libs/reusex/include/ReUseX/vision/common/object.hpp