Kaim::OrientedBox2d Class Reference
#include <orientedbox2d.h>
This class represents a three-dimensional bounding box with a free orientation on the (X,Y) plane.
It is defined by:
Kaim::OrientedBox2d::OrientedBox2d |
( |
| ) |
|
|
inline |
Creates a new OrientedBox2d with 0.0f length, width and thickness.
If you use this constructor, you must call Set() to set the dimensions of the rectangle before it can be used.
Creates a new OrientedBox2d and initialize it accordingly to provided information.
- Parameters
-
a | The position of the reference corner. |
orientation | The facing orientation of the box. |
length | The extents of the box along its orientation vector. |
width | The extents of the box perpendicular to its orientation vector on the (X,Y) plane. |
thickness | The extents of the box along the vertical Z axis. |
void Kaim::OrientedBox2d::InitAs2dInflatedSegment |
( |
const Vec3f & |
start, |
|
|
const Vec3f & |
dest, |
|
|
KyFloat32 |
radius |
|
) |
| |
|
inline |
Creates a new OrientedBox2d that will be an inflate of the segment going from start to dest of radius Object created using this constructor.
Sets the dimensions of the box.
- Parameters
-
a | The position of the reference corner. |
orientation | The facing orientation of the box. |
length | The extents of the box along its orientation vector. |
width | The extents of the box perpendicular to its orientation vector on the (X,Y) plane. |
thickness | The extents of the box along the vertical Z axis. |
Vec3f Kaim::OrientedBox2d::m_a |
The position of the reference corner.
The extents of the box along its orientation vector.
Vec2f Kaim::OrientedBox2d::m_normalizedOrientation |
The facing orientation of the box (unit vector).
The extents of the box along the vertical Z axis.
The extents of the box perpendicular to its orientation vector on the (X,Y) plane.
The documentation for this class was generated from the following file: