- Preparing search index...
- The search index is not available
JSGL - v1.0.9
Constructors
constructor
- new Transform(posX: number, posY: number, scaleX: number, scaleY: number, rotation?: number): Transform
-
Parameters
-
posX: number
-
posY: number
-
scaleX: number
-
scaleY: number
-
rotation: number = 0
Accessors
angles
- get angles(): number
-
Returns number
- set angles(radians: number): void
-
Returns void
eulerAngles
- get eulerAngles(): number
-
Returns number
- set eulerAngles(degrees: number): void
-
Returns void
Methods
bounce
- bounce(): void
Beta
Returns void
ifOnEdgeBounce
- ifOnEdgeBounce(grid: Vector2): void
Beta
Returns void
set
- set(x: number | Vector2, y?: number): void
-
Returns void
setX
- setX(x: number | Vector2): void
-
Returns void
setY
- setY(y: number | Vector2): void
-
Returns void
translate
- translate(x: number | Vector2, y?: number): void
-
Returns void
translateX
- translateX(x: number | Vector2): void
-
Returns void
translateY
- translateY(y: number | Vector2): void
-
Returns void
Constructs new Transform