GLUS
|
Go to the source code of this file.
Functions | |
GLUSAPI GLUSint GLUSAPIENTRY | glusIntersectRaySpheref (GLUSfloat *tNear, GLUSfloat *tFar, GLUSboolean *insideSphere, const GLUSfloat rayStart[4], const GLUSfloat rayDirection[3], const GLUSfloat sphereCenter[4], const GLUSfloat radius) |
Intersecting ray against sphere. More... | |
GLUSAPI GLUSint GLUSAPIENTRY glusIntersectRaySpheref | ( | GLUSfloat * | tNear, |
GLUSfloat * | tFar, | ||
GLUSboolean * | insideSphere, | ||
const GLUSfloat | rayStart[4], | ||
const GLUSfloat | rayDirection[3], | ||
const GLUSfloat | sphereCenter[4], | ||
const GLUSfloat | radius | ||
) |
Intersecting ray against sphere.
tNear | t of near intersection point if number intersections greater than zero. |
tFar | t of far intersection point if number intersections greater than zero. |
insideSphere | Set to GLUS_TRUE, if ray starts inside sphere. |
rayStart | Point, where the ray starts. |
rayDirection | Ray direction vector. Has to be normalized. |
sphereCenter | Center of the sphere given as a point. |
radius | Radius of the sphere. |