Skip to main content
←API Reference ←NSDK ←CGPoint

applyingAffineTransform


Declaration​

func applyingAffineTransform(containerSize: CGSize, viewSize: CGSize, transform: CGAffineTransform) -> CGPoint

Summary​

Transforms a single point from the container coordinate space to the view coordinate space by:
1. Normalizing the point relative to the container size,
2. Applying an affine transform (assumed to map normalized coordinates),
3. Scaling the result to the view size.

Returns​

The transformed point in the view coordinate space.

Parameters​

NameTypeSummary
containerSizeCGSize
The size of the container coordinate space.
viewSizeCGSize
The size of the target view coordinate space.
transformCGAffineTransform
The affine transform to apply to normalized coordinates.