| Vector2FCalculateAngle Method |
Calculates the angle between two vectors on a plane.
Namespace: Slash.Math.Algebra.VectorsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax public static float CalculateAngle(
Vector2F vector1,
Vector2F vector2
)
Public Shared Function CalculateAngle (
vector1 As Vector2F,
vector2 As Vector2F
) As Single
public:
static float CalculateAngle(
Vector2F vector1,
Vector2F vector2
)
static member CalculateAngle :
vector1 : Vector2F *
vector2 : Vector2F -> float32
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