An oriented bounding box. More...
#include <Obb.h>
Classes | |
| struct | Axis |
Public Member Functions | |
| AZ_TYPE_INFO (Obb, "{004abd25-cf14-4eb3-bd41-022c247c07fa}") | |
| const Vector3 & | GetPosition () const |
| const Quaternion & | GetRotation () const |
| void | SetRotation (const Quaternion &rotation) |
| const Vector3 & | GetHalfLengths () const |
| void | SetHalfLengths (const Vector3 &halfLengths) |
| Vector3 | GetAxisX () const |
| Vector3 | GetAxisY () const |
| Vector3 | GetAxisZ () const |
| Vector3 | GetAxis (int32_t index) const |
| float | GetHalfLengthX () const |
| float | GetHalfLengthY () const |
| float | GetHalfLengthZ () const |
| float | GetHalfLength (int32_t index) const |
| void | SetPosition (const Vector3 &position) |
| void | SetHalfLengthX (float halfLength) |
| void | SetHalfLengthY (float halfLength) |
| void | SetHalfLengthZ (float halfLength) |
| void | SetHalfLength (int32_t index, float halfLength) |
| bool | Contains (const Vector3 &point) const |
| float | GetDistance (const Vector3 &point) const |
| float | GetDistanceSq (const Vector3 &point) const |
| bool | IsFinite () const |
| bool | operator== (const Obb &rhs) const |
| bool | operator!= (const Obb &rhs) const |
Static Public Member Functions | |
| static void | Reflect (ReflectContext *context) |
| static Obb | CreateFromPositionRotationAndHalfLengths (const Vector3 &position, const Quaternion &rotation, const Vector3 &halfLengths) |
| static Obb | CreateFromAabb (const Aabb &aabb) |
| Converts an AABB into an OBB. | |
An oriented bounding box.
Returns whether a point is contained inside the OBB.
| point | The point to be tested against the OBB. |
Calculates distance from the OBB to specified point, a point inside the OBB will return zero.
| point | The point for which to find the distance from the OBB. |
Calculates squared distance from the OBB to specified point, a point inside the OBB will return zero.
| point | The point for which to find the squared distance from the OBB. |
|
static |
AzCore Reflection.
| context | reflection context |