CADability dotNET
Returns a positive value if the second vector turns to the left relative to the direction of the first vector, a negative value if it turns to the right and 0.0 if the vectors are parallel. The value is the length of the corssproduct of the two vectors in 3D or the area of the paralleogram build by the two vectors.

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

Syntax

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

Parameters

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

Return Value

The orientation

See Also