Skip to main content
←API Reference ←NSDK ←CGPoint

applyingReprojection

Applies a 3x3 homography (reprojection) to this point.

Declaration​

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

Summary​

Applies a 3x3 homography (reprojection) to this point.

Returns​

A new CGPoint transformed by the provided homography.

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 the point from the source coordinate space
to the target coordinate space.