Structure

CGPoint

A structure that contains a point in a two-dimensional coordinate system.

Declaration

typedef struct CGPoint {
    ...
} CGPoint;

Topics

Comparing Points

CGPointEqualToPoint

Returns whether two points are equal.

Instance Properties

x

The x-coordinate of the point.

y

The y-coordinate of the point.

See Also

Geometric Data Types

CGSize

A structure that contains width and height values.

CGRect

A structure that contains the location and dimensions of a rectangle.

CGVector

A structure that contains a two-dimensional vector.

CGAffineTransform

An affine transformation matrix for use in drawing 2D graphics.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software