Function

MTLCoordinate2DMake

Returns a new 2D point with the specified coordinates.

Declaration

MTLCoordinate2D MTLCoordinate2DMake(float x, float y);

Parameters

x

The x coordinate of the new point.

y

The y coordinate of the new point.

See Also

Object Sizing and Positioning

MTLOrigin

The coordinates for the front upper-left corner of a region.

MTLRegion

The bounds for a subset of an object's elements.

MTLSize

The dimensions of an object.

MTLCoordinate2D

A coordinate in the viewport.

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