|
GeometryToolsGetAngleBetweenLines Method
|
Calculate minimum angle between two lines measured in [0, 90] degrees range.
Namespace:
Accord.Math.Geometry
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static float GetAngleBetweenLines(
Point a1,
Point a2,
Point b1,
Point b2
)
Public Shared Function GetAngleBetweenLines (
a1 As Point,
a2 As Point,
b1 As Point,
b2 As Point
) As Single
Request Example
View SourceParameters
- a1
- Type: AccordPoint
A point on the first line. - a2
- Type: AccordPoint
Another point on the first line. - b1
- Type: AccordPoint
A point on the second line. - b2
- Type: AccordPoint
Another point on the second line.
Return Value
Type:
SingleReturns minimum angle between two lines.
Exceptions Exception | Condition |
---|
ArgumentException | a1 and a2 are the same,
-OR- b1 and b2 are the same. |
Remarks See Also