Click or drag to resize
Accord.NET (logo)

GeometryToolsGetAngleBetweenVectors Method

Calculate angle between to vectors measured in [0, 180] degrees range.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static float GetAngleBetweenVectors(
	Point startPoint,
	Point vector1end,
	Point vector2end
)
Request Example View Source

Parameters

startPoint
Type: AccordPoint
Starting point of both vectors.
vector1end
Type: AccordPoint
Ending point of the first vector.
vector2end
Type: AccordPoint
Ending point of the second vector.

Return Value

Type: Single
Returns angle between specified vectors measured in degrees.
See Also