Click or drag to resize

MathUtilsVectorAngle Method (Vector2, Vector2)

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: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static double VectorAngle(
	ref Vector2 p1,
	ref Vector2 p2
)

Parameters

p1
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
p2
Type: Internal.tainicom.Aether.Physics2D.CommonVector2

Return Value

Type: Double
See Also