Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » ResizeSegment_Delta
ResizeSegment_Delta
Header: | AVL.h |
---|---|
Namespace: | avl |
Changes length of a segment by adding a value preserving its orientation and center point.
Syntax
void avl::ResizeSegment_Delta ( const avl::Segment2D& inSegment, float inDelta, float inAnchor, avl::Segment2D& outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSegment | const Segment2D& | ||||
inDelta | float | 0.0f | Value added to segment length | ||
inAnchor | float | - - | 0.5f | ||
outSegment | Segment2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inSegment and outSegment
Read more about In-place Computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Negative segment length in ResizeSegment_Delta. |