Skip to main content
←API Reference

applyingReprojection


Declaration​

func applyingReprojection(containerSize: CGSize, transform: simd_float3x3) -> CGRect

Summary​

Applies a 3x3 homography (reprojection) to this rectangle and returns the resulting bounding box
in a specified container coordinate space.

Returns​

A new CGRect representing the transformed rectangle.

Parameters​

NameTypeSummary
containerSizeCGSize
The size of the container coordinate space. Coordinates are assumed to be
relative to this space (e.g., image or view size) when applying the homography.
transformsimd_float3x3
The 3x3 homography matrix that maps points from the source coordinate space
to the target coordinate space.