Microsoft DirectX 8.1 (Visual Basic)

D3DXPlaneFromPoints

Constructs a plane from three points.

D3DXPlaneFromPoints( _ 
    POut As D3DPLANE, _ 
    V1 As D3DVECTOR, _ 
    V2 As D3DVECTOR, _ 
    V3 As D3DVECTOR)

Parameters

POut
D3DPLANE type that is the result of the operation, a plane constructed from the given points.
V1
D3DVECTOR type, defining one of the points used to construct the plane.
V2
D3DVECTOR type, defining one of the points used to construct the plane.
V3
D3DVECTOR type, defining one of the points used to construct the plane.

Error Codes

If the function fails, an error is raised and Err.Number can be set to one of the following values.

D3DERR_INVALIDCALL
D3DERR_OUTOFVIDEOMEMORY

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

D3DXPlaneFromPointNormal