OBB_tpl

Exposes oriented bounding box functionality. More...

#include

Public Member Functions

OBB_tpl ()
Default OBB constructor (without initialisation).
ILINE void SetOBB (const Matrix33 &matrix, const Vec3 &hlv, const Vec3 &center)
ILINE void SetOBBfromAABB (const Matrix33 &mat33, const AABB &aabb)
ILINE void SetOBBfromAABB (const Quat &q, const AABB &aabb)

Static Public Member Functions

static ILINE OBB_tpl< F > CreateOBB (const Matrix33 &m33, const Vec3 &hlv, const Vec3 &center)
static ILINE OBB_tpl< F > CreateOBBfromAABB (const Matrix33 &m33, const AABB &aabb)
static ILINE OBB_tpl< F > CreateOBBfromAABB (const Quat &q, const AABB &aabb)

Public Attributes

Matrix33 m33
Orientation vectors.
Vec3 h
Half-length-vector.
Vec3 c
Center of obb.

Detailed Description

template struct OBB_tpl< F >

Exposes oriented bounding box functionality.

Member Function Documentation

◆ SetOBBfromAABB() [1/2]

template
ILINE void OBB_tpl< F >::SetOBBfromAABB ( const Matrix33 & mat33,
const AABB & aabb
)
inline

< Calculate the half-length-vectors.

< The center is relative to the PIVOT.

◆ SetOBBfromAABB() [2/2]

template
ILINE void OBB_tpl< F >::SetOBBfromAABB ( const Quat & q,
const AABB & aabb
)
inline

< Calculate the half-length-vectors.

< The center is relative to the PIVOT.