RescalePointArray


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

Syntax

C++
Python
 
def RescalePointArray(
	inPoints: list[Point2D],
	/,
	*,
	inReferencePoint: Point2D | None = None,
	inScale: float = 1.0,
	inInverse: bool = False
)
-> outPoints: list[Point2D]

Parameters

Name Type Default Description
Input value inPoints list[Point2D]
Input value inReferencePoint Point2D | None None Point to which the distances will be changed (the mass center by default)
Input value inScale float 1.0 Scaling factor
Input value inInverse bool False Switches to the inverse operation
Output value outPoints list[Point2D]