SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::Box Struct Reference

Data for an implicit box within a model file. More...

#include <box.h>

Public Member Functions

 Box ()=default
 Box (Real3 const &center, Real3 const &halfExtents, Quaternion const &rotation={})
bool operator!= (Box const &other) const =default
bool operator== (Box const &other) const =default

Public Attributes

Real3 center {}
 Center of the box [m].
Real3 halfExtents {1_r, 1_r, 1_r}
 Half extents of the box [m].
Quaternion rotation
 Rotation about the center of the box.

Detailed Description

Data for an implicit box within a model file.

Note
Similar to Obb (oriented bounding box), but with a serialization-friendly data representation. Used in ModelData.

Definition at line 31 of file box.h.

Constructor & Destructor Documentation

◆ Box() [1/2]

superdex::Box::Box ( )
default

◆ Box() [2/2]

superdex::Box::Box ( Real3 const & center,
Real3 const & halfExtents,
Quaternion const & rotation = {} )
inline

Definition at line 33 of file box.h.

Member Function Documentation

◆ operator!=()

bool superdex::Box::operator!= ( Box const & other) const
default

◆ operator==()

bool superdex::Box::operator== ( Box const & other) const
default

Member Data Documentation

◆ center

Real3 superdex::Box::center {}

Center of the box [m].

Definition at line 36 of file box.h.

◆ halfExtents

Real3 superdex::Box::halfExtents {1_r, 1_r, 1_r}

Half extents of the box [m].

Definition at line 37 of file box.h.

◆ rotation

Quaternion superdex::Box::rotation

Rotation about the center of the box.

Definition at line 38 of file box.h.


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