Click or drag to resize
DigitalRuneVector3FGetAngle Method
Calculates the angle between two vectors.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static float GetAngle(
	Vector3F vector1,
	Vector3F vector2
)

Parameters

vector1
Type: DigitalRune.Mathematics.AlgebraVector3F
The first vector.
vector2
Type: DigitalRune.Mathematics.AlgebraVector3F
The second vector.

Return Value

Type: Single
The angle between the given vectors, such that 0 ≤ angle ≤ π.
Exceptions
ExceptionCondition
ArgumentExceptionvector1 or vector2 has a length of 0.
See Also