Skip to main content
Version: Next

getTransformedRegionProperties

Callable


  • 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.


    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