Back to Aurora Vision Library website

You are here: Start » Function Reference » Path » Path Spatial Transforms » RescalePathArray

RescalePathArray


Header: AVL.h
Namespace: avl
Module: FoundationLite

Translates each point of each path proportionally to its distance to a reference point.

Syntax

C++
C#
 
void avl::RescalePathArray
(
	const atl::Array<avl::Path>& inPaths,
	atl::Optional<const avl::Point2D&> inReferencePoint,
	float inScale,
	bool inInverse,
	atl::Array<avl::Path>& outPaths
)

Parameters

Name Type Default Description
Input value inPaths const Array<Path>&
Input value inReferencePoint Optional<const Point2D&> NIL The point to which all distances change linearly (the mass center by default)
Input value inScale float 1.0f Scaling factor
Input value inInverse bool Switches to the inverse operation
Output value 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.