 | Vector2ICalculateAngle 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
Syntaxpublic static float CalculateAngle(
Vector2I vector1,
Vector2I vector2
)
Public Shared Function CalculateAngle (
vector1 As Vector2I,
vector2 As Vector2I
) As Single
public:
static float CalculateAngle(
Vector2I vector1,
Vector2I vector2
)
static member CalculateAngle :
vector1 : Vector2I *
vector2 : Vector2I -> float32
Parameters
- vector1
- Type: Slash.Math.Algebra.VectorsVector2I
First vector. - vector2
- Type: Slash.Math.Algebra.VectorsVector2I
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