Function

MTLCoordinate2DMake(_:_:)

Returns a new 2D point with the specified coordinates.

Declaration

func MTLCoordinate2DMake(_ x: Float, _ y: Float) -> MTLCoordinate2D

Parameters

x

The x coordinate of the new point.

y

The y coordinate of the new point.

See Also

Object Sizing and Positioning

struct MTLOrigin

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

struct MTLRegion

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

struct MTLSize

The dimensions of an object.

typealias MTLCoordinate2D

A coordinate in the viewport.