Boundable

interface Boundable : HasSize

Represents an object which has bounds and a position in 2D space. A Boundable object can provide useful information about its geometry relating to other Boundables (like intersection).

Types

Companion
Link copied to clipboard
common
object Companion

Functions

containsBoundable
Link copied to clipboard
common
abstract infix fun containsBoundable(boundable: Boundable): Boolean
Tells whether this boundable contains the other boundable.
containsPosition
Link copied to clipboard
common
abstract infix fun containsPosition(position: Position): Boolean
Tells whether position is within this boundable's bounds.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
intersects
Link copied to clipboard
common
abstract infix fun intersects(boundable: Boundable): Boolean
Tells whether this Boundable intersects with the other boundable.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

height
Link copied to clipboard
common
open override val height: Int
position
Link copied to clipboard
common
open val position: Position
Shorthand for Rect.position
rect
Link copied to clipboard
common
abstract val rect: Rect
A Rect contains the coordinates and the size of a Boundable.
size
Link copied to clipboard
common
abstract override val size: Size
width
Link copied to clipboard
common
open override val width: Int
x
Link copied to clipboard
common
open val x: Int
Shorthand for Rect.x
y
Link copied to clipboard
common
open val y: Int
Shorthand for Rect.y

Inheritors

Movable
Link copied to clipboard
Rect
Link copied to clipboard
Layer
Link copied to clipboard
DefaultMovable
Link copied to clipboard
Renderable
Link copied to clipboard

Sources

(source)
Link copied to clipboard