Click or drag to resize

UtilAngleBetweenUnitVectors Method (Vector2, Vector2)

Returns the angle (in radians) between two unit Vector2 directions.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static double AngleBetweenUnitVectors(
	Vector2 v1,
	Vector2 v2
)

Parameters

v1
Type: Microsoft.DirectXVector2
First unit Vector2 direction.
v2
Type: Microsoft.DirectXVector2
Second unit Vector2 direction.

Return Value

Type: Double
The angle (in radians) between the unit Vector2 directions.
Remarks
See Also