You are here: Start » AVL.NET » AVL.RescalePath(AvlNet.Path, AvlNet.Point2D?, float, bool, AvlNet.Path)

AVL.RescalePath(AvlNet.Path, AvlNet.Point2D?, float, bool, AvlNet.Path)

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RescalePath(
	AvlNet.Path inPath,
	AvlNet.Point2D? inReferencePoint,
	float inScale,
	bool inInverse,
	out AvlNet.Path outPath
)

Parameters

inPath
Type: AvlNet.Path
Input path
inReferencePoint
Type: System.Nullable<AvlNet.Point2D>
The point to which all distances change linearly (the mass center by default), or null.
inScale
Type: System.Single
Scaling factor
inInverse
Type: System.Boolean
Switches to the inverse operation
outPath
Type: AvlNet.Path
Output path

See also