BoundingBox

sealed class BoundingBox(source)

Represents a bounding box, which defines a rectangular area.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

This bounding box is used to represent an empty or undefined bounding box.

Properties

Link copied to clipboard

The height of the bounding box.

Link copied to clipboard
open val maxX: Double

The maximum x-coordinate of the bounding box.

Link copied to clipboard
open val maxY: Double

The maximum y-coordinate of the bounding box.

Link copied to clipboard
open val minX: Double

The minimum x-coordinate of the bounding box.

Link copied to clipboard
open val minY: Double

The minimum y-coordinate of the bounding box.

Link copied to clipboard

The width of the bounding box.

Link copied to clipboard
val x: Double

The x-coordinate of the center of the bounding box.

Link copied to clipboard
val y: Double

The y-coordinate of the center of the bounding box.

Functions

Link copied to clipboard
fun copy(minX: Double = this.minX, minY: Double = this.minY, maxX: Double = this.maxX, maxY: Double = this.maxY): BoundingBox
Link copied to clipboard
open override fun toString(): String