Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RescalePointArray

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,
	float 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 float 1.0f Scaling factor
inInverse bool Switches to the inverse operation
outPoints Array<Point2D>&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inPoints and outPoints