Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RescaleSegment
Lengthens or shortens a segment relatively.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::RescaleSegment ( const avl::Segment2D& inSegment, atl::Optional<const avl::Point2D&> inReferencePoint, float inScale, bool inInverse, avl::Segment2D& outSegment )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inSegment | const Segment2D& | |||
inReferencePoint | Optional<const Point2D&> | NIL | The point to which all distances change linearly (the mass center by default) | |
inScale | float | 1.0f | Scaling factor (negative values invert the segment) | |
inInverse | bool | Switches to the inverse operation | ||
outSegment | Segment2D& |