Radium Engine  1.5.0
Ra::Core::Geometry::Obb Class Reference

An oriented bounding box. More...

#include <Core/Geometry/Obb.hpp>

+ Collaboration diagram for Ra::Core::Geometry::Obb:

Public Types

using Transform = Eigen::Transform< Scalar, 3, Eigen::Affine >
 
using Aabb = Eigen::AlignedBox< Scalar, 3 >
 

Public Member Functions

 Obb ()
 Constructors and destructor. More...
 
 Obb (const Aabb &aabb, const Transform &tr)
 Initialize an OBB from an AABB and a transform.
 
 Obb (const Obb &other)=default
 Default copy constructor and assignment operator.
 
Obboperator= (const Obb &other)=default
 
Aabb toAabb () const
 Return the AABB enclosing this.
 
void addPoint (const Eigen::Matrix< Scalar, 3, 1 > &p)
 Extends the OBB with an new point.
 
Eigen::Matrix< Scalar, 3, 1 > corner (int i) const
 Returns the position of the i^th corner of AABB (model space)
 
Eigen::Matrix< Scalar, 3, 1 > worldCorner (int i) const
 Returns the position of the ith corner of the OBB ( world space )
 
Transform & transform ()
 Non-const access to the obb transformation.
 
const Transform & transform () const
 Const access to the obb transformation.
 

Detailed Description

An oriented bounding box.

Definition at line 11 of file Obb.hpp.

Constructor & Destructor Documentation

◆ Obb()

Ra::Core::Geometry::Obb::Obb ( )
inline

Constructors and destructor.

Initializes an empty bounding box.

Definition at line 20 of file Obb.hpp.


The documentation for this class was generated from the following file: