Microsoft DirectX 9.0 SDK Update (October 2004)

ClipPlane.GetSingleArray Method

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves the coefficients of a user-defined clipping plane for the device.

Definition

Visual Basic .NET Public Function GetSingleArray() As Single()
C# public float[] GetSingleArray();
Managed C++ public: float GetSingleArray() __gc[];
JScript .NET public function GetSingleArray() : float[];

Return Value

System.Single[]. Returns a four-element array of values that represent the coefficients of the clipping plane, in the form of the general plane equation. See Remarks.

Remarks

The coefficients that this method reports take the form of the general plane equation. If the values in the array at pPlane are labeled A, B, C, and D in the order in which they appear in the array, they will fit into the general plane equation so that Ax + By + Cz + Dw = 0. A point with homogeneous coordinates (x, y, z, w) is visible in the half space of the plane if Ax + By + Cz + Dw > = 0. Points that exist on or behind the clipping plane are clipped from the scene.

The plane equation this method uses exists in world space and is set by a previous call to ClipPlane.SetSingleArray.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center