Click or drag to resize

MathUtilsVectorAngle(Vector2, Vector2) Method

Return the angle between two vectors on a plane The angle is from vector 1 to vector 2, positive anticlockwise The result is between -pi -> pi

Namespace: Internal.tainicom.Aether.Physics2D.Common
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static double VectorAngle(
	ref Vector2 p1,
	ref Vector2 p2
)

Parameters

p1  Vector2
 
p2  Vector2
 

Return Value

Double
See Also