Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RescaleLine
Changes the distance of a line to a reference point.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::RescaleLine ( const avl::Line2D& inLine, const avl::Point2D& inReferencePoint, float inScale, bool inInverse, avl::Line2D& outLine )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inLine | const Line2D& | |||
inReferencePoint | const Point2D& | The point to which all distances change linearly | ||
inScale | float | 1.0f | Scaling factor | |
inInverse | bool | Switches to the inverse operation | ||
outLine | Line2D& |
Errors
Error type | Description |
---|---|
DomainError | Indefinite line on input in RescaleLine. |
DomainError | inScale cannot be zero in an inverse rescaling of a line in RescaleLine. |