#include <FUBoundingSphere.h>
Public Member Functions | |
| FUBoundingSphere () | |
| Empty constructor. | |
| FUBoundingSphere (const FMVector3 ¢er, float radius) | |
| Constructor. | |
| FUBoundingSphere (const FUBoundingSphere ©) | |
| Copy constructor. | |
| ~FUBoundingSphere () | |
| Destructor. | |
| void | Reset () |
| Resets the bounding sphere. | |
| bool | IsValid () const |
| Retrieves whether the bounding sphere contains valid information. | |
| const FMVector3 & | GetCenter () const |
| Retrieves the center of the bounding sphere. | |
| float | GetRadius () const |
| Retrieves the radius of the bounding sphere. | |
| void | SetCenter (const FMVector3 &_center) |
| Sets the center of the bounding sphere. | |
| void | SetRadius (float _radius) |
| Sets the radius of the bounding sphere. | |
| bool | Contains (const FMVector3 &point) const |
| Retrieves whether a given point is contained within the bounding sphere. | |
| bool | Overlaps (const FUBoundingSphere &boundingSphere, FMVector3 *overlapCenter=NULL) const |
| Retrieves whether a bounding sphere overlaps with this bounding sphere. | |
| bool | Overlaps (const FUBoundingBox &boundingBox, FMVector3 *overlapCenter=NULL) const |
| Retrieves whether a bounding box overlaps with this bounding sphere. | |
| void | Include (const FMVector3 &point) |
| Extends the bounding sphere to include the given 3D coordinate. | |
| void | Include (const FUBoundingSphere &boundingSphere) |
| Extends the bounding sphere to include another bounding sphere. | |
| void | Include (const FUBoundingBox &boundingBox) |
| Extends the bounding sphere to include a bounding box. | |
| FUBoundingSphere | Transform (const FMMatrix44 &transform) const |
| Transform the bounding sphere into another space basis. | |
|
|
Empty constructor. The center and radius parameters are set at the largest and most impossible values. |
|
||||||||||||
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Retrieves whether a given point is contained within the bounding sphere.
|
|
|
Retrieves the center of the bounding sphere.
|
|
|
Retrieves the radius of the bounding sphere.
|
|
|
Extends the bounding sphere to include a bounding box.
|
|
|
Extends the bounding sphere to include another bounding sphere.
|
|
|
Extends the bounding sphere to include the given 3D coordinate.
|
|
|
Retrieves whether the bounding sphere contains valid information. An invalid bounding sphere has a negative radius. Reseting the bounding sphere and the empty constructor generate invalid bounding spheres on purpose.
|
|
||||||||||||
|
Retrieves whether a bounding box overlaps with this bounding sphere.
|
|
||||||||||||
|
Retrieves whether a bounding sphere overlaps with this bounding sphere.
|
|
|
Resets the bounding sphere. The center and radius are set at the largest and most impossible values. Including a freshly reset bounding sphere to a valid bounding sphere will have no effect. |
|
|
Sets the center of the bounding sphere.
|
|
|
Sets the radius of the bounding sphere.
|
|
|
Transform the bounding sphere into another space basis.
|
1.4.6-NO