Properties
Private
_h
_h: number = 0
Private
_w
_w: number = 0
Private
_x
_x: number = 0
Private
_y
_y: number = 0
Methods
contains
- contains(x: number, y: number): boolean
-
Returns boolean
getBottom
- getBottom(): number
-
Returns number
getCenterX
- getCenterX(): number
-
Returns number
getCenterY
- getCenterY(): number
-
Returns number
getHeight
- getHeight(): number
-
Returns number
getLeft
- getLeft(): number
-
Returns number
getRight
- getRight(): number
-
Returns number
getTop
- getTop(): number
-
Returns number
getWidth
- getWidth(): number
-
Returns number
getX
- getX(): number
-
Returns number
getY
- getY(): number
-
Returns number
set
- set(x: number, y: number, w: number, h: number): LUIRect
-
Parameters
-
x: number
-
y: number
-
w: number
-
h: number
setSize
- setSize(w: number, h?: number): LUIRect
-
Parameters
-
w: number
-
Optional
h: number
Copyright (c) 2013-2023 Christoph Schnackenberg mail@xtoff.games
MIT license: https://github.com/typespritejs/typesprite-engine/blob/develop/LICENSE.MD