commonMain.dev.andrewbailey.diff.impl.Region.kt Maven / Gradle / Ivy
package dev.andrewbailey.diff.impl
internal data class Region(
val left: Int,
val top: Int,
val right: Int,
val bottom: Int
) {
val width: Int
get() = right - left
val height: Int
get() = bottom - top
val size: Int
get() = width + height
val delta: Int
get() = width - height
}