Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » LineNormalVector

LineNormalVector


Header: AVL.h
Namespace: avl
Module: FoundationLite

Computes the normal vector of a line.

Syntax

C++
C#
 
void avl::LineNormalVector
(
	const avl::Line2D& inLine,
	bool inReverse,
	avl::Vector2D& outVector
)

Parameters

Name Type Default Description
Input value inLine const Line2D&
Input value inReverse bool True
Output value outVector Vector2D&

Examples

LineNormalVector performed on a line (left image) returns outVector (right image).

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in LineNormalVector.