Click or drag to resize

UtilAngleBetweenVectors(Vector2, Vector2) Method

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

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

Parameters

v1  Vector2
First Vector2 direction.
v2  Vector2
Second Vector2 directions.

Return Value

Double
The angle (in radians) between the Vector2 directions.
See Also