Geometry.SphereBoundProbe Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Determines whether a ray intersects the volume of a sphere's bounding box.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Shared Function SphereBoundProbe ( _
center As Vector3, _
radius As Single, _
rayPosition As Vector3, _
rayDirection As Vector3 _
) As Boolean
'Usage
Dim center As Vector3
Dim radius As Single
Dim rayPosition As Vector3
Dim rayDirection As Vector3
Dim returnValue As Boolean
returnValue = Geometry.SphereBoundProbe(center, _
radius, rayPosition, rayDirection)
public static bool SphereBoundProbe(
Vector3 center,
float radius,
Vector3 rayPosition,
Vector3 rayDirection
)
public:
static bool SphereBoundProbe(
Vector3 center,
float radius,
Vector3 rayPosition,
Vector3 rayDirection
)
static member SphereBoundProbe :
center:Vector3 *
radius:float32 *
rayPosition:Vector3 *
rayDirection:Vector3 -> bool
Parameters
- center
Type: Microsoft.WindowsMobile.DirectX.Vector3
A Vector3 structure that specifies the center coordinate of the sphere.
- radius
Type: System.Single
The radius of the sphere.
- rayPosition
Type: Microsoft.WindowsMobile.DirectX.Vector3
A Vector3 structure that specifies the origin coordinate of the ray.
- rayDirection
Type: Microsoft.WindowsMobile.DirectX.Vector3
A Vector3 structure that specifies the direction of the ray. This vector should not be (0,0,0), but does not need to be normalized.
Return Value
Type: System.Boolean
true if the ray intersects the volume of the sphere's bounding box; otherwise, false.
Remarks
The SphereBoundProbe method determines whether the ray intersects the volume of the sphere, and not just its surface.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0