API reference
API reference
Select your platform
No SDKs available
No versions available

Bound2D

Bound2D

data class Bound2D(var min: Vector2 = Vector2(0f, 0f), var max: Vector2 = Vector2(0f, 0f))
A data class representing a 2D bounding box.

Constructors

NameSummary
Bound2D
constructor(min: Vector2 = Vector2(0f, 0f), max: Vector2 = Vector2(0f, 0f))

Properties

NameSummary
max
var max: Vector2
The maximum coordinates of the bounding box.
min
var min: Vector2
The minimum coordinates of the bounding box.

Functions

NameSummary
toString
open override fun toString(): String
Returns a string representation of the bounding box.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon