Accord.NET Framework

## GeometryToolsGetAngleBetweenLines Method |

Calculate minimum angle between two lines measured in [0, 90] degrees range.

Syntax

Request Example
View Source#### Parameters

#### Return Value

Type: Single

Returns minimum angle between two lines.

- 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.

Returns minimum angle between two lines.

Exceptions

Exception | Condition |
---|---|

ArgumentException | a1 and a2 are the same, -OR- b1 and b2 are the same. |

Remarks

Note |
---|

It is preferred to use GetAngleBetweenLines(Line) if it is required to calculate angle multiple times for one of the lines. |

See Also