CADability dotNET
Returns the cosine of the angle between the two vectors. Throws an arithmetic exception if any of the vectors is the nullvector.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static double Cos(
	GeoVector v1,
	GeoVector v2
)
Visual Basic
Public Shared Function Cos ( _
	v1 As GeoVector, _
	v2 As GeoVector _
) As Double
Visual C++
public:
static double Cos(
	GeoVector v1, 
	GeoVector v2
)

Parameters

v1
Type: CADability..::..GeoVector
First vector
v2
Type: CADability..::..GeoVector
Second vector

Return Value

Cosine of the inner angle

See Also