ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
ReUseX::vision::common::object::Obb Struct Reference

Oriented bounding box (OBB) parameterized by center, size, and rotation angle. More...

#include <object.hpp>

Public Member Functions

 Obb ()=default
 Obb (float cx, float cy, float w, float h, float angle)
 Construct an Obb with center, size, and angle.
Obboperator= (const Obb &other)
float area () const
 Returns the area of the oriented bounding box.

Public Attributes

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.

Friends

std::ostream & operator<< (std::ostream &os, const Obb &obb)

Detailed Description

Oriented bounding box (OBB) parameterized by center, size, and rotation angle.

Definition at line 86 of file object.hpp.

Constructor & Destructor Documentation

◆ Obb() [1/2]

ReUseX::vision::common::object::Obb::Obb ( )
default

Referenced by operator<<, and operator=().

◆ 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.

Member Function Documentation

◆ 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)

References Obb().

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Obb & obb )
friend

References Obb().

Member Data Documentation

◆ 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

Center x-coordinate.

Definition at line 87 of file object.hpp.

Referenced by Obb().

◆ cy

float ReUseX::vision::common::object::Obb::cy = 0.0f

Center y-coordinate.

Definition at line 88 of file object.hpp.

Referenced by Obb().

◆ h

float ReUseX::vision::common::object::Obb::h = 0.0f

Height of the box.

Definition at line 90 of file object.hpp.

Referenced by area(), and Obb().

◆ w

float ReUseX::vision::common::object::Obb::w = 0.0f

Width of the box.

Definition at line 89 of file object.hpp.

Referenced by area(), and Obb().


The documentation for this struct was generated from the following file:
  • libs/reusex/include/ReUseX/vision/common/object.hpp