Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Angle Metrics » AngleBetweenLines

AngleBetweenLines


Header: FIL.h
Namespace: fil
Module: FoundationLite

Measures the smaller and the larger angle between two lines.

Syntax

C++
C#
 
void fil::AngleBetweenLines
(
	const fil::Line2D& inLine1,
	const fil::Line2D& inLine2,
	ftl::Optional<float&> outSmallerAngle = ftl::NIL,
	ftl::Optional<float&> outLargerAngle = ftl::NIL
)

Parameters

Name Type Default Description
Input value
inLine1 const Line2D&
Input value
inLine2 const Line2D&
Output value
outSmallerAngle Optional<float&> NIL
Output value
outLargerAngle Optional<float&> NIL

Optional Outputs

The computation of following outputs can be switched off by passing value ftl::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.