package net.shadowfacts.shadowui.geometry data class Rect(val left: Double, val top: Double, val width: Double, val height: Double) { val right: Double get() = left + width val bottom: Double get() = top + height val midX: Double get() = left + width / 2 val midY: Double get() = top + height / 2 }