Back to FabImage Library website

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

RescalePath


Header: FIL.h
Namespace: fil
Module: FoundationLite

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

Syntax

C++
C#
 
void fil::RescalePath
(
	const fil::Path& inPath,
	ftl::Optional<const fil::Point2D&> inReferencePoint,
	float inScale,
	bool inInverse,
	fil::Path& outPath
)

Parameters

Name Type Default Description
Input value inPath const Path& Input 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 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.