AI_Sphere Class Reference
[Mathematics]
#include <AI_Sphere.h>
Detailed Description
A 3-dimensional AI_Sphere.(C) 2004 RadonLabs GmbH
Public Member Functions | |
AI_Sphere () | |
AI_Sphere (const AI_Vector3 &_p, float _r) | |
AI_Sphere (const AI_Sphere &s) | |
AI_Sphere (float _x, float _y, float _z, float _r) | |
void | set (const AI_Vector3 &_p, float _r) |
void | set (float _x, float _y, float _z, float _r) |
bool | intersects (const AI_Sphere &s) const |
bool | intersects (const AI_BBox &box) const |
Check if AI_Sphere intersects with box. Taken from "Simple Intersection Tests For Games", Gamasutra, Oct 18 1999. | |
bool | intersect_sweep (const AI_Vector3 &va, const AI_Sphere &sb, const AI_Vector3 &vb, float &u0, float &u1) |
Public Attributes | |
AI_Vector3 | p |
float | r |
Constructor & Destructor Documentation
AI_Sphere::AI_Sphere | ( | ) | [inline] |
AI_Sphere::AI_Sphere | ( | const AI_Vector3 & | _p, | |
float | _r | |||
) | [inline] |
AI_Sphere::AI_Sphere | ( | const AI_Sphere & | s | ) | [inline] |
AI_Sphere::AI_Sphere | ( | float | _x, | |
float | _y, | |||
float | _z, | |||
float | _r | |||
) | [inline] |
Member Function Documentation
void AI_Sphere::set | ( | const AI_Vector3 & | _p, | |
float | _r | |||
) | [inline] |
void AI_Sphere::set | ( | float | _x, | |
float | _y, | |||
float | _z, | |||
float | _r | |||
) | [inline] |
bool AI_Sphere::intersects | ( | const AI_Sphere & | s | ) | const [inline] |
bool AI_Sphere::intersects | ( | const AI_BBox & | box | ) | const [inline] |
Check if AI_Sphere intersects with box. Taken from "Simple Intersection Tests For Games", Gamasutra, Oct 18 1999.
bool AI_Sphere::intersect_sweep | ( | const AI_Vector3 & | va, | |
const AI_Sphere & | sb, | |||
const AI_Vector3 & | vb, | |||
float & | u0, | |||
float & | u1 | |||
) | [inline] |
Member Data Documentation
float AI_Sphere::r |
The documentation for this class was generated from the following file: