Computes the cosine of the angle between two 3d vectors.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax
C# |
---|
public static double AngleCosine( Vector3d a, Vector3d b ) |
Visual Basic (Declaration) |
---|
Public Shared Function AngleCosine ( _ a As Vector3d, _ b As Vector3d _ ) As Double |
Visual C++ |
---|
public: static double AngleCosine( Vector3d^ a, Vector3d^ b ) |
Parameters
- a
- Type: ceometric.VectorGeometry..::.Vector3d
A first 3d vector.
- b
- Type: ceometric.VectorGeometry..::.Vector3d
A second 3d vector.
Return Value
Returns the cosine of the angle between two 3d vectors.Remarks
The computation of the cosine of the angle is numerically more stable and
computationally less costive than the computation of the angle.