Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » ResizeSegment_Delta
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Changes length of a segment by adding a value preserving its orientation and center point.
Syntax
C++
C#
void fil::ResizeSegment_Delta ( const fil::Segment2D& inSegment, float inDelta, float inAnchor, fil::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. |