The U4DSphere class implements a mathematical representation of a sphere.
More...
The U4DSphere class implements a mathematical representation of a sphere.
◆ getCenter()
Method which returns the center location of the sphere.
- Returns
- Returns the center location of the sphere
◆ getRadius()
float U4DEngine::U4DSphere::getRadius |
( |
| ) |
|
Method which returns the radius of the sphere.
- Returns
- Returns the radius of the sphere
◆ intersectionWithVolume() [1/2]
bool U4DEngine::U4DSphere::intersectionWithVolume |
( |
U4DSphere & |
uSphere | ) |
|
Method which test the intersection between two spheres.
- Parameters
-
uSphere | Sphere to test intersection with |
- Returns
- Returns true if two spheres are intersecting
◆ intersectionWithVolume() [2/2]
bool U4DEngine::U4DSphere::intersectionWithVolume |
( |
U4DSphere & |
uSphere, |
|
|
U4DPlane & |
uPlane |
|
) |
| |
Method which test the intersection between two spheres and returns the intersection plane.
- Parameters
-
uSphere | Sphere to test intersection with |
uPlane | Intersection plane created during the intersection |
- Returns
- Returns true if two spheres are intersecting
◆ setCenter()
void U4DEngine::U4DSphere::setCenter |
( |
U4DPoint3n & |
uCenter | ) |
|
Method which sets the center location of the sphere.
- Parameters
-
uCenter | Center location of the sphere |
◆ setRadius()
void U4DEngine::U4DSphere::setRadius |
( |
float |
uRadius | ) |
|
Method which sets the radius of the sphere.
- Parameters
-
uRadius | Radius of the sphere |