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

AVL.RescalePointArray

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RescalePointArray
(
	IList<AvlNet.Point2D> inPoints,
	AvlNet.Point2D? inReferencePoint,
	float inScale,
	bool inInverse,
	IList<AvlNet.Point2D> outPoints
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>
inReferencePointAvlNet.Point2D?Point to which the distances will be changed (the mass center by default). Default value: atl::NIL.
inScalefloat1.0fScaling factor. Default value: 1.0f.
inInverseboolSwitches to the inverse operation.
outPointsSystem.Collections.Generic.IList<AvlNet.Point2D>

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse rescaling of a point in RescalePointArray.

Function Overrides

See also