Back to Aurora Vision Library Lite website
You are here: Start » Path » Path Spatial Transforms » RescalePath
RescalePath
Header: | AVL.h |
---|---|
Namespace: | avl |
Translates each point of a path proportionally to its distance to a reference point.
Syntax
void avl::RescalePath ( const avl::Path& inPath, atl::Optional<const avl::Point2D&> inReferencePoint, float inScale, bool inInverse, avl::Path& outPath )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPath | const Path& | Input 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 | ||
outPath | Path& | Output path |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPath and outPath
Read more about In-place Computation.