Back to FabImage Library Lite websiteYou are here:
Start »
Geometry 2D »
Geometry 2D Features »
LineNormalVector
Header: |
FIL.h
|
Namespace: |
fil |
Computes the normal vector of a line.
Syntax
void fil::LineNormalVector
(
const fil::Line2D& inLine,
bool inReverse,
fil::Vector2D& outVector
)
Parameters
|
Name |
Type |
Default |
Description |
 |
inLine |
const Line2D& |
|
|
 |
inReverse |
bool |
True |
|
 |
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. |