![]() |
![]() |
![]() |
UnsafeNativeMethods.Plane.Dot Method |
Language: |
Computes the dot product of a plane and a vector.
Visual Basic .NET Public Shared Function Dot( _
ByVal pPlane As Plane, _
ByVal pV As Vector4 _
) As SingleC# public static float Dot(
Plane pPlane,
Vector4 pV
);Managed C++ public: static float Dot(
Plane pPlane,
Vector4 pV
);JScript .NET public static function Dot(
pPlane : Plane,
pV : Vector4
) : float;
pPlane Microsoft.DirectX.Plane. Source Plane structure. pV Microsoft.DirectX.Vector4. Source Vector4 structure.
System.Single . A Single
value that is the dot product of the plane and the vector.
Given a plane (a, b, c, d) and a 4-D vector (x, y, z, w), this method's return value is a*x + b*y + c*z + d*w. The Dot method is useful for determining the plane's relationship with a homogeneous coordinate. For example, it can determine whether a coordinate is on a particular plane, or on which side of a particular plane a coordinate lies.
Given a plane (a, b, c, d) and a 3-D vector (x, y, z), this method's return value is a*x + b*y + c*z + d*1. The Dot method is useful for determining the plane's relationship with a coordinate in 3-D space.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center