Rect

public struct Rect : CustomDebugStringConvertible, Codable, Equatable

Undocumented

  • Undocumented

    Declaration

    Swift

    public var origin: Point
  • Undocumented

    Declaration

    Swift

    public var size: Size
  • Undocumented

    Declaration

    Swift

    public static var zero: Rect
  • Undocumented

    Declaration

    Swift

    public init(origin: Point, size: Size)
  • Undocumented

    Declaration

    Swift

    public init(x: Int, y: Int, width: Int, height: Int)
  • Undocumented

    Declaration

    Swift

    public init(left: Int, top: Int, right: Int, bottom: Int)
  • Undocumented

    Declaration

    Swift

    public var isEmpty: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var minX: Int { get }
  • Undocumented

    Declaration

    Swift

    public var midX: Int { get }
  • Undocumented

    Declaration

    Swift

    public var maxX: Int { get }
  • Undocumented

    Declaration

    Swift

    public var minY: Int { get }
  • Undocumented

    Declaration

    Swift

    public var midY: Int { get }
  • Undocumented

    Declaration

    Swift

    public var maxY: Int { get }
  • Undocumented

    Declaration

    Swift

    public var width: Int { get }
  • Undocumented

    Declaration

    Swift

    public var height: Int { get }
  • Undocumented

    Declaration

    Swift

    public var left: Int { get }
  • Undocumented

    Declaration

    Swift

    public var right: Int { get }
  • top

    Undocumented

    Declaration

    Swift

    public var top: Int { get }
  • Undocumented

    Declaration

    Swift

    public var bottom: Int { get }
  • Undocumented

    Declaration

    Swift

    public func intersection(_ rect2: Rect) -> Rect
  • Undocumented

    Declaration

    Swift

    public func intersects(_ rect2: Rect) -> Bool
  • Undocumented

    Declaration

    Swift

    public func contains(x: Int, y: Int) -> Bool
  • Undocumented

    Declaration

    Swift

    public func contains(_ point: Point) -> Bool
  • Declaration

    Swift

    public var debugDescription: String { get }