Structures

The following structures are available globally.

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

    See more

    Declaration

    Swift

    public struct Point : CustomStringConvertible, Equatable
  • A structure that contains integer width and height values.

    See more

    Declaration

    Swift

    public struct Size : CustomStringConvertible, Equatable
  • A structure that contains integer location and dimensions of a rectangle. For our purposes, the the origin is in the upper-left corner and the rectangle extends towards the lower-right corner

    See more

    Declaration

    Swift

    public struct Rect : CustomStringConvertible, Equatable
  • Represents the color intensities for one pixel in a Photo.

    Abstract State:

    • red, green, and blue channels
    • each is a value between 0..255

    This is an immutable struct.

    See more

    Declaration

    Swift

    public struct Pixel : CustomStringConvertible