Partager via


Plane Structure (Microsoft.DirectX)

Describes and manipulates a plane.

Definition

Visual Basic Public Structure Plane
C# public struct Plane 
C++ public value class Plane sealed 
JScript In JScript, you can use structures, but you cannot define your own.

Members Table

The following table lists the members exposed by the object.

Fields

Field Description
A Retrieves or sets the 'A' coefficient of the clipping plane in the general plane equation.
B Retrieves or sets the 'B' coefficient of the clipping plane in the general plane equation.
C Retrieves or sets the 'C' coefficient of the clipping plane in the general plane equation.
D Retrieves or sets the 'D' coefficient of the clipping plane in the general plane equation.

Methods

Method Description
Dot Computes the dot product of a plane and a vector.
static (Shared in Visual Basic) DotNormal Computes the dot product of a plane and a 3-D vector. The w parameter of the vector is assumed to be 0.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
static (Shared in Visual Basic) FromPointNormal Constructs a plane from a point and a normal.
static (Shared in Visual Basic) FromPoints Constructs a plane from three points.
GetHashCode Returns the hash code for the current instance.
static (Shared in Visual Basic) IntersectLine Finds the intersection between a plane and a line.
Normalize Returns the normal of a plane.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
Plane Initializes a new instance of the Plane class.
Scale Scales the plane with a given scaling factor.
ToString Obtains a string representation of the current instance.
Transform Transforms a plane by a matrix.

Properties

Property Description
static (Shared in Visual Basic) Empty Retrieves an empty plane.

Remarks

The members of the Plane structure take the form of the general plane equation. They fit into the general plane equation so that ax + by + cz + dw = 0.

Structure Information

Namespace Microsoft.DirectX
Assembly Microsoft.DirectX (microsoft.directx.dll)
Strong Name Microsoft.DirectX,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492

See Also