Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » SegmentNormalVector
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationLite |
Computes an unitary vector perpendicular to the segment.
Syntax
C++
C#
void avl::SegmentNormalVector ( const avl::Segment2D& inSegment, bool inReverse, avl::Vector2D& outNormalVector )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inSegment | const Segment2D& | |||
inReverse | bool | True | ||
outNormalVector | Vector2D& |
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when an empty segment is given on input.