Click or drag to resize

UtilAngleBetweenVectors Method (Vector3, Vector3)

Returns the angle (in radians) between two Vector3 directions.

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

Parameters

v1
Type: Microsoft.DirectXVector3
First Vector3 direction.
v2
Type: Microsoft.DirectXVector3
Second Vector3 direction.

Return Value

Type: Double
The angle (in radians) between the Vector3 directions.
See Also