littlekt
0.6.0
common
core
/
com.lehaine.littlekt.util.packer
/
BinRect
Bin
Rect
open
class
BinRect
(
x
:
Int
=
0
,
y
:
Int
=
0
,
width
:
Int
=
0
,
height
:
Int
=
0
,
isRotated
:
Boolean
=
false
,
allowRotation
:
Boolean
?
=
null
,
data
:
Map
<
String
,
Any
>
=
mapOf()
,
tag
:
String
?
=
null
)
Author
Colton Daily
Constructors
Functions
Properties
Constructors
Bin
Rect
Link copied to clipboard
fun
BinRect
(
x
:
Int
=
0
,
y
:
Int
=
0
,
width
:
Int
=
0
,
height
:
Int
=
0
,
isRotated
:
Boolean
=
false
,
allowRotation
:
Boolean
?
=
null
,
data
:
Map
<
String
,
Any
>
=
mapOf()
,
tag
:
String
?
=
null
)
Functions
collides
Link copied to clipboard
fun
collides
(
rect
:
BinRect
)
:
Boolean
contains
Link copied to clipboard
fun
contains
(
rect
:
BinRect
)
:
Boolean
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
Properties
allow
Rotation
Link copied to clipboard
var
allowRotation
:
Boolean
?
area
Link copied to clipboard
val
area
:
Int
data
Link copied to clipboard
val
data
:
MutableMap
<
String
,
Any
>
dirty
Link copied to clipboard
var
dirty
:
Boolean
height
Link copied to clipboard
var
height
:
Int
is
Rotated
Link copied to clipboard
var
isRotated
:
Boolean
oversized
Link copied to clipboard
var
oversized
:
Boolean
=
false
tag
Link copied to clipboard
var
tag
:
String
?
width
Link copied to clipboard
var
width
:
Int
x
Link copied to clipboard
var
x
:
Int
y
Link copied to clipboard
var
y
:
Int