Structure

MTLOrigin

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

Declaration

struct MTLOrigin

Topics

Creating Origin Points

init()

Initializes a new origin.

init(x: Int, y: Int, z: Int)

Initializes a new origin with the specified coordinates.

func MTLOriginMake(Int, Int, Int) -> MTLOrigin

Returns a new origin with the specified coordinates.

Getting and Setting Coordinate Values

var x: Int

The x coordinate of the origin.

var y: Int

The y coordinate of the origin.

var z: Int

The z coordinate of the origin.

See Also

Object Sizing and Positioning

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.

func MTLCoordinate2DMake(Float, Float) -> MTLCoordinate2D

Returns a new 2D point with the specified coordinates.