A sphere primitive, mostly used for bounds checking.
More...
#include <CCPUSphere.h>
A sphere primitive, mostly used for bounds checking.
Standard constructor - creates a unit sphere around the origin.
Standard constructor - creates a unit sphere around the origin.
Standard constructor - creates a unit sphere around the origin.
Constructor allowing arbitrary spheres.
- Parameters
-
| center | The center point of the sphere. |
| radius | The radius of the sphere. |
Constructor allowing arbitrary spheres.
- Parameters
-
| center | The center point of the sphere. |
| radius | The radius of the sphere. |
| local PUSphere |
( |
local |
center, |
|
|
local |
radius |
|
) |
| |
Constructor allowing arbitrary spheres.
- Parameters
-
| center | The center point of the sphere. |
| radius | The radius of the sphere. |
| const Vec3& getCenter |
( |
void |
| ) |
const |
|
inline |
Returns the center point of the sphere.
Returns the center point of the sphere.
Returns the center point of the sphere.
| float getRadius |
( |
void |
| ) |
const |
|
inline |
Returns the radius of the sphere.
Returns the radius of the sphere.
Returns the radius of the sphere.
| bool intersects |
( |
const PUSphere & |
s | ) |
const |
|
inline |
Returns whether or not this sphere intersects another sphere.
Returns whether or not this sphere intersects another sphere.
| local intersects |
( |
local |
s | ) |
|
|
inline |
Returns whether or not this sphere intersects another sphere.
| bool intersects |
( |
const Vec3 & |
v | ) |
const |
|
inline |
Returns whether or not this sphere intersects a box.
Returns whether or not this sphere intersects a plane. Returns whether or not this sphere intersects a point.
Returns whether or not this sphere intersects a box.
Returns whether or not this sphere intersects a plane. Returns whether or not this sphere intersects a point.
| local intersects |
( |
local |
v | ) |
|
|
inline |
Returns whether or not this sphere intersects a box.
Returns whether or not this sphere intersects a plane. Returns whether or not this sphere intersects a point.
Merges another Sphere into the current sphere.
Merges another Sphere into the current sphere.
Merges another Sphere into the current sphere.
| void setCenter |
( |
const Vec3 & |
center | ) |
|
|
inline |
Sets the center point of the sphere.
| var setCenter |
( |
var |
center | ) |
|
|
inline |
Sets the center point of the sphere.
| local setCenter |
( |
local |
center | ) |
|
|
inline |
Sets the center point of the sphere.
| void setRadius |
( |
float |
radius | ) |
|
|
inline |
Sets the radius of the sphere.
| var setRadius |
( |
var |
radius | ) |
|
|
inline |
Sets the radius of the sphere.
| local setRadius |
( |
local |
radius | ) |
|
|
inline |
Sets the radius of the sphere.
The documentation for this class was generated from the following file:
- /Users/minggo/SourceCode/cocos2d-x/extensions/Particle3D/PU/CCPUSphere.h