source: GTP/trunk/App/Games/Jungle_Rumble/src/physic/physics/include/NxIntersectionRaySphere.h @ 1378

Revision 1378, 1.4 KB checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#ifndef NX_INTERSECTION_RAY_SPHERE
2#define NX_INTERSECTION_RAY_SPHERE
3/** \addtogroup physics
4  @{
5*/
6
7#include "Nxp.h"
8#include "PhysXLoader.h"
9
10//namespace NxCollision
11//{
12        /**
13        \brief Ray-sphere intersection test.
14       
15        Returns true if the ray intersects the sphere, and the impact point if needed.
16
17        \warning #NxCreatePhysicsSDK() must be called before using this function.
18
19        \param[in] origin Origin of the ray. <b>Range:</b> position vector
20        \param[in] dir Direction of the ray. <b>Range:</b> direction vector
21        \param[in] center Center of the sphere. <b>Range:</b> position vector
22        \param[in] radius Sphere radius. <b>Range:</b> (0,inf)
23        \param[out] coord Point of intersection between ray and sphere.
24
25        \return True on intersection.
26
27        <b>Platform:</b>
28        \li PC SW: Yes
29        \li PPU  : Yes
30        \li PS3  : Yes
31        \li XB360: Yes
32        */
33        NX_INLINE bool NX_CALL_CONV NxRaySphereIntersect(const NxVec3& origin, const NxVec3& dir, const NxVec3& center, NxReal radius, NxVec3* coord=NULL)
34                {
35                return NxGetUtilLib()->NxRaySphereIntersect(origin,dir,center,radius,coord);
36                }
37//}
38
39/** @} */
40#endif
41
42
43//AGCOPYRIGHTBEGIN
44///////////////////////////////////////////////////////////////////////////
45// Copyright © 2005 AGEIA Technologies.
46// All rights reserved. www.ageia.com
47///////////////////////////////////////////////////////////////////////////
48//AGCOPYRIGHTEND
49
Note: See TracBrowser for help on using the repository browser.