Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Angle Metrics » AngleBetweenLines
AngleBetweenLines
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Measures the smaller and the larger angle between two lines.
Syntax
void avl::AngleBetweenLines ( const avl::Line2D& inLine1, const avl::Line2D& inLine2, atl::Optional<float&> outSmallerAngle = atl::NIL, atl::Optional<float&> outLargerAngle = atl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inLine1 | const Line2D& | ||
![]() |
inLine2 | const Line2D& | ||
![]() |
outSmallerAngle | Optional<float&> | NIL | |
![]() |
outLargerAngle | Optional<float&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outSmallerAngle, outLargerAngle.
Read more about Optional Outputs.
Examples

Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in AngleBetweenLines. |
See Also
- AngleBetweenSegments – Measures the angle between two segments with one of four possible metrics.


