You are here: Start » AVL.NET » AVL.RescalePointArray(AvlNet.Point2D[], AvlNet.Point2D?, float, bool, AvlNet.Point2D[])

AVL.RescalePointArray(AvlNet.Point2D[], AvlNet.Point2D?, float, bool, AvlNet.Point2D[])

Changes the distances of points from an array to a reference point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RescalePointArray(
	AvlNet.Point2D[] inPoints,
	AvlNet.Point2D? inReferencePoint,
	float inScale,
	bool inInverse,
	out AvlNet.Point2D[] outPoints
)

Parameters

inPoints
Type: AvlNet.Point2D
inReferencePoint
Type: System.Nullable<AvlNet.Point2D>
Point to which the distances will be changed (the mass center by default), or null.
inScale
Type: System.Single
Scaling factor
inInverse
Type: System.Boolean
Switches to the inverse operation
outPoints
Type: AvlNet.Point2D

See also