Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » ResizeSegment
Lengthens or shortens a segment to a new length preserving its orientation and center point.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::ResizeSegment ( const avl::Segment2D& inSegment, float inNewLength, float inAnchor, avl::Segment2D& outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSegment | const Segment2D& | ||||
inNewLength | float | 0.0 - | 1.0f | ||
inAnchor | float | - - | 0.5f | ||
outSegment | Segment2D& |