Point

public struct Point : CustomStringConvertible, Equatable

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

  • x

    The x-coordinate of the point.

    Declaration

    Swift

    public let x: Int
  • y

    The y-coordinate of the point.

    Declaration

    Swift

    public let y: Int
  • A textual representation of the point’s coordinate values.

    Declaration

    Swift

    public var description: String { get }
  • The point with location (0,0).

    Declaration

    Swift

    public static let zero: Point