| Vector2FGetAngle Method |
Calculates the angle between two vectors.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static float GetAngle(
Vector2F vector1,
Vector2F vector2
)
Public Shared Function GetAngle (
vector1 As Vector2F,
vector2 As Vector2F
) As Single
public:
static float GetAngle(
Vector2F vector1,
Vector2F vector2
)
static member GetAngle :
vector1 : Vector2F *
vector2 : Vector2F -> float32
Parameters
- vector1
- Type: DigitalRune.Mathematics.AlgebraVector2F
The first vector. - vector2
- Type: DigitalRune.Mathematics.AlgebraVector2F
The second vector.
Return Value
Type:
SingleThe angle between the given vectors, such that 0 ≤ angle ≤ π.
Exceptions See Also