CreateCoordinateSystemFromRectangle


Creates a coordinate system from a rectangle.

Applications:Most often used to define an object alignment from a filter like RegionBoundingRectangle.

Syntax

C++
Python
 
def CreateCoordinateSystemFromRectangle(
	inRectangle: Rectangle2D,
	/,
	*,
	inPointAnchor: Anchor2D = Anchor2D.TopLeft,
	inRelativeAngle: float = 0,
	inScale: float = 1.0,
	inScaleDivisor: float = 1.0
)
-> outCoordinateSystem: CoordinateSystem2D

Parameters

Name Type Range Default Description
Input value inRectangle Rectangle2D
Input value inPointAnchor Anchor2D Anchor2D.TopLeft
Input value inRelativeAngle float 0
Input value inScale float 0.001 - 1.0
Input value inScaleDivisor float 0.001 - 1.0
Output value outCoordinateSystem CoordinateSystem2D