Back to FabImage Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » RescaleLine

RescaleLine
Changes the distance of a line to a reference point.
Syntax
void fil::RescaleLine ( const fil::Line2D& inLine, const fil::Point2D& inReferencePoint, float inScale, bool inInverse, fil::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. |