Click or drag to resize

Plane Structure

Defines a plane in three dimensions.

A default constructed one is Empty.

You are unlikely to ever directly construct one, you'd use one of the static methods returning a Plane, e.g. FromPointNormal(Vector3, Vector3)

Namespace:  Microsoft.DirectX
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
[SerializableAttribute]
public struct Plane : IEquatable<Plane>

The Plane type exposes the following members.

Constructors
  NameDescription
Public methodPlane(Plane)
Initializes a new instance of the Plane struct.
Public methodPlane(Vector3, Double)
Initializes a new instance of the Plane struct.
Public methodPlane(Double, Double, Double, Double)
Initializes a new instance of the Plane struct.
Public methodPlane(Single, Single, Single, Single)
Initializes a new instance of the Plane struct.
Top
Properties
  NameDescription
Public propertyDD
Gets or sets the distance of the Plane along its normal from the origin as a Double.
Public propertyStatic memberEmpty
A Plane with all of its components set to zero.
Public propertyNormal
Return the Plane normal
Public propertyNormalized
Plane normalization - make length of normal be 1
Public propertyXD
Gets or sets the X component of the normal to the Plane as a Double.
Public propertyYD
Gets or sets the Y component of the normal to the Plane as a Double.
Public propertyZD
Gets or sets the Z component of the normal to the Plane as a Double.
Top
Methods
  NameDescription
Public methodDot(Vector3)
Dot product of Vector3 as a coordinate and this Plane
Public methodDot(Vector4)
Dot product of Vector4 and this Plane
Public methodStatic memberDot(Plane, Vector3)
Dot product of Vector3 as a coordinate and Plane
Public methodStatic memberDot(Plane, Vector4)
Dot product of Vector4 and Plane
Public methodDotD(Vector3)
Dot product of Vector3 as a coordinate and this Plane
Public methodDotD(Vector4)
Dot product of Vector4 and this Plane
Public methodStatic memberDotD(Plane, Vector3)
Dot product of Vector3 as a coordinate and Plane
Public methodStatic memberDotD(Plane, Vector4)
Dot product of Vector4 and Plane
Public methodDotNormal(Vector3)
Dot product of Vector3 and this Plane normal
Public methodStatic memberDotNormal(Plane, Vector3)
Dot product of Vector3 and Plane normal
Public methodDotNormalD(Vector3)
Dot product of Vector3 and this Plane normal
Public methodStatic memberDotNormalD(Plane, Vector3)
Dot product of Vector3 and Plane normal
Public methodEquals(Object)
Plane exact equality - see EQ(Plane, Plane) for alternative
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Plane)
Exact value equality - see EQ(Plane, Plane) for alternative
Public methodStatic memberFromPointNormal
Create a Plane from a Vector3 coordinate and Vector3 normal
Public methodStatic memberFromPoints
Create a Plane from three Vector3 coordinates
Public methodGetHashCode
Returns the hash code for the current Plane.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberIntersectLine
Find intersection Vector3 on Plane of the line segment between two Vector3s
Public methodNormalize
Plane normalization - make length of normal be 1
Public methodStatic memberNormalize(Plane)
Plane normalization - make length of normal be 1
Public methodScale(Double)
Scale the Plane
Public methodScale(Single)
Scale the Plane
Public methodStatic memberScale(Plane, Double)
Scale the Plane
Public methodStatic memberScale(Plane, Single)
Scale the Plane
Public methodToString
Returns a string that represents the current Plane.
(Overrides ValueTypeToString.)
Public methodTransform(Matrix)
Transform Plane by Matrix
Public methodStatic memberTransform(Plane, Matrix)
Transform Plane by Matrix
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Exact value equality - see EQ(Plane, Plane) for alternative
Public operatorStatic memberInequality
Exact value inequality - see NE(Plane, Plane) for alternative
Top
Fields
  NameDescription
Public fieldD
Gets or sets the distance of the Plane along its normal from the origin as a Single.
Public fieldX
Gets or sets the X component of the normal to the Plane as a Single.
Public fieldY
Gets or sets the Y component of the normal to the Plane as a Single.
Public fieldZ
Gets or sets the Z component of the normal to the Plane as a Single.
Top
See Also