Back to Adaptive Vision Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » ResizeSegment_Delta
![](../../img/icon/ResizeSegment.png)
ResizeSegment_Delta
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& |
Errors
Error type | Description |
---|---|
DomainError | Negative segment length in ResizeSegment_Delta. |