Microsoft DirectX 9.0 SDK Update (October 2004)

Plane.Dot Method

Language:

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

Computes the dot product of a plane and a vector.

Definition

Visual Basic .NET Public Function Dot( _
    ByVal v As Vector4 _
) As Single
C# public float Dot(
    Vector4 v
);
Managed C++ public: float Dot(
    Vector4 v
);
JScript .NET public function Dot(
    v : Vector4
) : float;

Parameters

v Microsoft.DirectX.Vector4. Source Vector4 structure.

Return Value

System.Single . A Single Leave Site value that is the dot product of the plane and the vector.

Remarks

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.

See Also


© 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