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

Bound2D Class

Modifiers: final
A data class representing a 2D bounding box.

Signature

data class Bound2D(var min: Vector2 = Vector2(0f, 0f), var max: Vector2 = Vector2(0f, 0f))

Constructors

Bound2D ( min , max )
Signature
constructor(min: Vector2 = Vector2(0f, 0f), max: Vector2 = Vector2(0f, 0f))
Parameters
min: Vector2
  The minimum coordinates of the bounding box.
max: Vector2
  The maximum coordinates of the bounding box.
Returns

Properties

max : Vector2
[Get][Set]
The maximum coordinates of the bounding box.
Signature
var max: Vector2
min : Vector2
[Get][Set]
The minimum coordinates of the bounding box.
Signature
var min: Vector2

Functions

toString ()
Returns a string representation of the bounding box.
Signature
open override fun toString(): String
Returns
String
  A string in the format "(min, max)".
Did you find this page helpful?