Back to FabImage Library website
You are here: Start » Function Reference » Path » Path Spatial Transforms » RescalePathArray
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Translates each point of each path proportionally to its distance to a reference point.
Syntax
C++
C#
void fil::RescalePathArray ( const ftl::Array<fil::Path>& inPaths, ftl::Optional<const fil::Point2D&> inReferencePoint, float inScale, bool inInverse, ftl::Array<fil::Path>& outPaths )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPaths | const Array<Path>& | ||
![]() |
inReferencePoint | Optional<const Point2D&> | NIL | The point to which all distances change linearly (the mass center by default) |
![]() |
inScale | float | 1.0f | Scaling factor |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outPaths | Array<Path>& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPaths and outPaths
Read more about In-place Computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Reference point cannot be computed in RescalePathArray. |