littlekt
0.6.0
common
core
/
com.lehaine.littlekt.math
/
Rect
Rect
open
class
Rect
(
var
x
:
Float
=
0.0f
,
var
y
:
Float
=
0.0f
,
var
width
:
Float
=
0.0f
,
var
height
:
Float
=
0.0f
)
Author
Colton Daily
Types
Constructors
Functions
Properties
Extensions
Constructors
Rect
Link copied to clipboard
fun
Rect
(
x
:
Float
=
0.0f
,
y
:
Float
=
0.0f
,
width
:
Float
=
0.0f
,
height
:
Float
=
0.0f
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
intersects
Link copied to clipboard
fun
intersects
(
rect
:
Rect
)
:
Boolean
fun
intersects
(
left
:
Float
,
top
:
Float
,
right
:
Float
,
bottom
:
Float
)
:
Boolean
set
Link copied to clipboard
fun
set
(
newX
:
Float
,
newY
:
Float
,
newWidth
:
Float
,
newHeight
:
Float
)
:
Rect
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
Properties
height
Link copied to clipboard
var
height
:
Float
=
0.0f
is
Empty
Link copied to clipboard
val
isEmpty
:
Boolean
width
Link copied to clipboard
var
width
:
Float
=
0.0f
x
Link copied to clipboard
var
x
:
Float
=
0.0f
x2
Link copied to clipboard
val
x2
:
Float
y
Link copied to clipboard
var
y
:
Float
=
0.0f
y2
Link copied to clipboard
val
y2
:
Float
Extensions
calculate
View
Bounds
Link copied to clipboard
fun
Rect
.
calculateViewBounds
(
camera
:
Camera
)