Click or drag to resize
Vector2FCalculateAngle Method
Calculates the angle between two vectors on a plane.

Namespace: Slash.Math.Algebra.Vectors
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static float CalculateAngle(
	Vector2F vector1,
	Vector2F vector2
)

Parameters

vector1
Type: Slash.Math.Algebra.VectorsVector2F
First vector.
vector2
Type: Slash.Math.Algebra.VectorsVector2F
Second vector.

Return Value

Type: Single
Return the angle between two vectors on a plane. The angle is from vector 1 to vector 2, positive counter-clockwise. The result is between -pi -> pi.
See Also