Rectangle

constructor(width: Int, height: Int = width)
constructor(width: Float, height: Float = width)
constructor(width: Double, height: Double = width)

Creates a Rectangle at the Origin: [0, 0, width, height]


constructor(size: Size)

Creates a Rectangle at the Origin: [0, 0, size.width, size.height]


constructor(x: Int = 0, y: Int = 0, width: Int = 0, height: Int = 0)
constructor(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0)
constructor(x: Float = 0.0f, y: Float = 0.0f, width: Float = 0.0f, height: Float = 0.0f)

Creates a Rectangle


constructor(position: Point = Origin, size: Size = Size.Empty)