Point

public struct Point : CustomDebugStringConvertible, Codable, Equatable

Point represents a position in the screen using an x and y coordinate for the column and row respectively.

  • x

    The x (column) component of this point

    Declaration

    Swift

    public var x: Int
  • y

    The y (row) component of this point

    Declaration

    Swift

    public var y: Int
  • The point at the origin (0, 0)

    Declaration

    Swift

    public static var zero: Point
  • Initializes a new Point with the specified x and y coordinates

    Declaration

    Swift

    public init(x: Int, y: Int)
  • Initializes a new Point from a Size structure using width for the x component and height for the y component

    Declaration

    Swift

    public init(point: Size)
  • Undocumented

    Declaration

    Swift

    public static func + (lhs: Point, rhs: Point) -> Point
  • Undocumented

    Declaration

    Swift

    public static func - (lhs: Point, rhs: Point) -> Point
  • Declaration

    Swift

    public static func == (lhs: Point, rhs: Point) -> Bool
  • Undocumented

    Declaration

    Swift

    public static func != (lhs: Point, rhs: Point) -> Bool
  • Declaration

    Swift

    public var debugDescription: String { get }