Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » RescaleLine
RescaleLine
Header: | AVL.h |
---|---|
Namespace: | avl |
Changes the distance of a line to a reference point.
Syntax
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& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inLine and outLine
Read more about In-place Computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in RescaleLine. |
DomainError | Scale cannot be zero in an inverse rescaling of a line in RescaleLine. |