Click or drag to resize

UtilAngleBetweenUnitVectors(Vector3, Vector3) Method

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

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

Parameters

v1  Vector3
First unit Vector3 direction.
v2  Vector3
Second unit Vector3 direction.

Return Value

Double
The angle (in radians) between the unit Vector3 directions.
Remarks
A unit Vector3 is one such that Length equals one.
See Also