Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RescalePointArray
Changes the distances of points from an array to a reference point.
Syntax
C++
C#
void avl::RescalePointArray ( const atl::Array<avl::Point2D>& inPoints, atl::Optional<const avl::Point2D&> inReferencePoint, atl::real inScale, bool inInverse, atl::Array<avl::Point2D>& outPoints )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | ||
![]() |
inReferencePoint | Optional<const Point2D&> | NIL | Point to which the distances will be changed (the mass center by default) |
![]() |
inScale | real | 1.0f | Scaling factor |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outPoints | Array<Point2D>& |


