ODE  0.13.1
 All Data Structures Functions Variables Typedefs Enumerations Groups

Functions

dGeomID dCreateSphere (dSpaceID space, dReal radius)
 Create a sphere geom of the given radius, and return its ID. More...
 
void dGeomSphereSetRadius (dGeomID sphere, dReal radius)
 Set the radius of a sphere geom. More...
 
dReal dGeomSphereGetRadius (dGeomID sphere)
 Retrieves the radius of a sphere geom. More...
 
dReal dGeomSpherePointDepth (dGeomID sphere, dReal x, dReal y, dReal z)
 Calculate the depth of the a given point within a sphere. More...
 

Detailed Description

Function Documentation

dGeomID dCreateSphere ( dSpaceID  space,
dReal  radius 
)

Create a sphere geom of the given radius, and return its ID.

Parameters
spacea space to contain the new geom. May be null.
radiusthe radius of the sphere.
Returns
A new sphere geom.
Remarks
The point of reference for a sphere is its center.
See Also
dGeomDestroy
dGeomSphereSetRadius
dReal dGeomSphereGetRadius ( dGeomID  sphere)

Retrieves the radius of a sphere geom.

Parameters
spherethe sphere to query.
See Also
dGeomSphereSetRadius
dReal dGeomSpherePointDepth ( dGeomID  sphere,
dReal  x,
dReal  y,
dReal  z 
)

Calculate the depth of the a given point within a sphere.

Parameters
spherethe sphere to query.
xthe X coordinate of the point.
ythe Y coordinate of the point.
zthe Z coordinate of the point.
Returns
The depth of the point. Points inside the sphere will have a positive depth, points outside it will have a negative depth, and points on the surface will have a depth of zero.
void dGeomSphereSetRadius ( dGeomID  sphere,
dReal  radius 
)

Set the radius of a sphere geom.

Parameters
spherethe sphere to set.
radiusthe new radius.
See Also
dGeomSphereGetRadius