getTransformedRegionProperties
Callable
Parameters
region: RegionTransformSource
Source region geometry expressed in the origin frame.
spatialTransformAST: Mapping
AST mapping from the origin frame to the target frame.
Returns { controlPoints: Point2D[]; rotation: number }
Transformed control points and rotation angle in the target frame.
controlPoints: Point2D[]
rotation: number
Transforms a region's control points and rotation from one coordinate frame to another using the supplied AST spatial mapping.
For box-like regions (rectangle, ellipse, compass, and their annotation equivalents) the center is reprojected and the size is rescaled by the local Jacobian; for all other region types every control point is reprojected individually.