Tao.Ode SDK Documentation

Ode.dGeomBoxPointDepth Method 

Return the depth of the point (x,y,z) in the given box. Points inside the geom will have positive depth, points outside it will have negative depth, and points on the surface will have zero depth.

[Visual Basic]
Public Shared Function dGeomBoxPointDepth( _
   ByVal box As IntPtr, _
   ByVal x As Single, _
   ByVal y As Single, _
   ByVal z As Single _
) As Single
[C#]
public static float dGeomBoxPointDepth(
   IntPtr box,
   float x,
   float y,
   float z
);

Parameters

box
the box to query
x
the x-coordinate of the point
y
the y-coordinate of the point
z
the z-coordinate of the point

Return Value

the depth of the point

See Also

Ode Class | Tao.Ode Namespace