Rect

class Rect

2-dimensional axis-aligned rectangle.

  • The width of the rectangle.

    Declaration

    var width: Double { get }
  • The height of the rectangle.

    Declaration

    var height: Double { get }
  • The point that specifies the coordinates of the rectangle’s origin.

    Declaration

    var origin: Point { get }
  • The size of the rectangle.

    Declaration

    var size: Size { get }
  • The point that specifies the coordinates of the rectangle’s center.

    Declaration

    var center: Point { get }
  • The object’s description

    Declaration

    var description: String { get }