@vpmedia/phaser 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/src/index.js +19 -19
- package/src/phaser/core/animation.js +3 -3
- package/src/phaser/core/animation_manager.js +2 -2
- package/src/phaser/core/animation_parser.js +16 -14
- package/src/phaser/core/array_set.js +2 -2
- package/src/phaser/core/cache.js +6 -6
- package/src/phaser/core/const.js +1 -1
- package/src/phaser/core/device.js +2 -2
- package/src/phaser/core/device_util.js +29 -11
- package/src/phaser/core/dom.js +2 -2
- package/src/phaser/core/event_manager.js +2 -2
- package/src/phaser/core/factory.js +8 -8
- package/src/phaser/core/frame.js +3 -3
- package/src/phaser/core/frame_data.js +2 -2
- package/src/phaser/core/frame_util.js +11 -9
- package/src/phaser/core/game.js +14 -13
- package/src/phaser/core/input.js +7 -7
- package/src/phaser/core/input_handler.js +2 -2
- package/src/phaser/core/input_mouse.js +2 -2
- package/src/phaser/core/input_mspointer.js +1 -1
- package/src/phaser/core/input_pointer.js +3 -3
- package/src/phaser/core/input_touch.js +1 -1
- package/src/phaser/core/loader.js +3 -3
- package/src/phaser/core/loader_parser.js +25 -21
- package/src/phaser/core/raf.js +2 -2
- package/src/phaser/core/scale_manager.js +5 -5
- package/src/phaser/core/scene.js +2 -2
- package/src/phaser/core/scene_manager.js +3 -3
- package/src/phaser/core/signal.js +4 -3
- package/src/phaser/core/signal_binding.js +2 -2
- package/src/phaser/core/sound.js +3 -3
- package/src/phaser/core/sound_manager.js +6 -6
- package/src/phaser/core/sound_sprite.js +2 -2
- package/src/phaser/core/stage.js +4 -4
- package/src/phaser/core/time.js +3 -3
- package/src/phaser/core/timer.js +3 -3
- package/src/phaser/core/timer_event.js +1 -1
- package/src/phaser/core/tween.js +4 -4
- package/src/phaser/core/tween_data.js +2 -2
- package/src/phaser/core/tween_easing.js +63 -63
- package/src/phaser/core/tween_manager.js +3 -3
- package/src/phaser/core/world.js +3 -3
- package/src/phaser/display/bitmap_text.js +17 -5
- package/src/phaser/display/button.js +19 -4
- package/src/phaser/display/canvas/buffer.js +1 -1
- package/src/phaser/display/canvas/graphics.js +9 -6
- package/src/phaser/display/canvas/masker.js +6 -4
- package/src/phaser/display/canvas/pool.js +18 -11
- package/src/phaser/display/canvas/renderer.js +1 -1
- package/src/phaser/display/canvas/tinter.js +18 -13
- package/src/phaser/display/canvas/util.js +43 -34
- package/src/phaser/display/display_object.js +9 -5
- package/src/phaser/display/graphics.js +19 -11
- package/src/phaser/display/graphics_data.js +3 -2
- package/src/phaser/display/graphics_data_util.js +6 -4
- package/src/phaser/display/group.js +14 -5
- package/src/phaser/display/image.js +15 -5
- package/src/phaser/display/sprite_batch.js +8 -2
- package/src/phaser/display/sprite_util.js +21 -15
- package/src/phaser/display/text.js +15 -5
- package/src/phaser/display/webgl/abstract_filter.js +1 -1
- package/src/phaser/display/webgl/base_texture.js +3 -2
- package/src/phaser/display/webgl/blend_manager.js +1 -1
- package/src/phaser/display/webgl/earcut.js +107 -107
- package/src/phaser/display/webgl/earcut_node.js +1 -1
- package/src/phaser/display/webgl/fast_sprite_batch.js +1 -1
- package/src/phaser/display/webgl/filter_manager.js +1 -1
- package/src/phaser/display/webgl/filter_texture.js +1 -1
- package/src/phaser/display/webgl/graphics.js +34 -34
- package/src/phaser/display/webgl/graphics_data.js +2 -2
- package/src/phaser/display/webgl/mask_manager.js +7 -5
- package/src/phaser/display/webgl/render_texture.js +5 -5
- package/src/phaser/display/webgl/renderer.js +2 -2
- package/src/phaser/display/webgl/shader/complex.js +1 -1
- package/src/phaser/display/webgl/shader/fast.js +1 -1
- package/src/phaser/display/webgl/shader/normal.js +1 -1
- package/src/phaser/display/webgl/shader/primitive.js +1 -1
- package/src/phaser/display/webgl/shader/strip.js +1 -1
- package/src/phaser/display/webgl/shader_manager.js +1 -1
- package/src/phaser/display/webgl/sprite_batch.js +1 -1
- package/src/phaser/display/webgl/stencil_manager.js +1 -1
- package/src/phaser/display/webgl/texture.js +4 -3
- package/src/phaser/display/webgl/texture_util.js +11 -9
- package/src/phaser/display/webgl/util.js +20 -16
- package/src/phaser/geom/circle.js +12 -4
- package/src/phaser/geom/ellipse.js +13 -4
- package/src/phaser/geom/line.js +12 -3
- package/src/phaser/geom/matrix.js +14 -3
- package/src/phaser/geom/point.js +9 -2
- package/src/phaser/geom/polygon.js +4 -3
- package/src/phaser/geom/rectangle.js +12 -3
- package/src/phaser/geom/rounded_rectangle.js +12 -2
- package/src/phaser/geom/util/circle.js +37 -29
- package/src/phaser/geom/util/ellipse.js +7 -15
- package/src/phaser/geom/util/line.js +30 -24
- package/src/phaser/geom/util/matrix.js +11 -9
- package/src/phaser/geom/util/point.js +100 -78
- package/src/phaser/geom/util/polygon.js +7 -15
- package/src/phaser/geom/util/rectangle.js +78 -62
- package/src/phaser/geom/util/rounded_rectangle.js +7 -15
- package/src/phaser/util/math.js +86 -66
- package/types/global.d.ts +7 -0
- package/types/index.d.ts +18 -18
- package/types/index.d.ts.map +1 -1
- package/types/phaser/core/animation.d.ts +5 -5
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_parser.d.ts +13 -11
- package/types/phaser/core/animation_parser.d.ts.map +1 -1
- package/types/phaser/core/array_set.d.ts +2 -2
- package/types/phaser/core/cache.d.ts +4 -4
- package/types/phaser/core/cache.d.ts.map +1 -1
- package/types/phaser/core/const.d.ts +1 -1
- package/types/phaser/core/device.d.ts +2 -2
- package/types/phaser/core/device_util.d.ts +31 -21
- package/types/phaser/core/device_util.d.ts.map +1 -1
- package/types/phaser/core/event_manager.d.ts +1 -1
- package/types/phaser/core/event_manager.d.ts.map +1 -1
- package/types/phaser/core/factory.d.ts +2 -2
- package/types/phaser/core/factory.d.ts.map +1 -1
- package/types/phaser/core/frame.d.ts +2 -2
- package/types/phaser/core/frame.d.ts.map +1 -1
- package/types/phaser/core/frame_data.d.ts +1 -1
- package/types/phaser/core/frame_util.d.ts +8 -6
- package/types/phaser/core/frame_util.d.ts.map +1 -1
- package/types/phaser/core/game.d.ts +12 -12
- package/types/phaser/core/game.d.ts.map +1 -1
- package/types/phaser/core/input.d.ts +4 -4
- package/types/phaser/core/input.d.ts.map +1 -1
- package/types/phaser/core/input_handler.d.ts +1 -1
- package/types/phaser/core/input_handler.d.ts.map +1 -1
- package/types/phaser/core/input_mspointer.d.ts +1 -1
- package/types/phaser/core/input_pointer.d.ts +2 -2
- package/types/phaser/core/input_pointer.d.ts.map +1 -1
- package/types/phaser/core/input_touch.d.ts +1 -1
- package/types/phaser/core/loader.d.ts +1 -1
- package/types/phaser/core/loader.d.ts.map +1 -1
- package/types/phaser/core/loader_parser.d.ts +22 -18
- package/types/phaser/core/loader_parser.d.ts.map +1 -1
- package/types/phaser/core/raf.d.ts +2 -2
- package/types/phaser/core/scale_manager.d.ts +4 -4
- package/types/phaser/core/scale_manager.d.ts.map +1 -1
- package/types/phaser/core/scene.d.ts +2 -2
- package/types/phaser/core/scene_manager.d.ts +1 -1
- package/types/phaser/core/signal.d.ts +1 -1
- package/types/phaser/core/signal.d.ts.map +1 -1
- package/types/phaser/core/signal_binding.d.ts +2 -2
- package/types/phaser/core/sound.d.ts +4 -4
- package/types/phaser/core/sound.d.ts.map +1 -1
- package/types/phaser/core/sound_manager.d.ts +5 -5
- package/types/phaser/core/sound_manager.d.ts.map +1 -1
- package/types/phaser/core/sound_sprite.d.ts +2 -2
- package/types/phaser/core/stage.d.ts +2 -2
- package/types/phaser/core/stage.d.ts.map +1 -1
- package/types/phaser/core/time.d.ts +2 -2
- package/types/phaser/core/time.d.ts.map +1 -1
- package/types/phaser/core/timer.d.ts +2 -2
- package/types/phaser/core/timer.d.ts.map +1 -1
- package/types/phaser/core/timer_event.d.ts +1 -1
- package/types/phaser/core/tween.d.ts +18 -18
- package/types/phaser/core/tween.d.ts.map +1 -1
- package/types/phaser/core/tween_data.d.ts +5 -5
- package/types/phaser/core/tween_data.d.ts.map +1 -1
- package/types/phaser/core/tween_easing.d.ts +63 -63
- package/types/phaser/core/tween_manager.d.ts +2 -2
- package/types/phaser/core/tween_manager.d.ts.map +1 -1
- package/types/phaser/core/world.d.ts +2 -2
- package/types/phaser/core/world.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +16 -5
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/button.d.ts +18 -4
- package/types/phaser/display/button.d.ts.map +1 -1
- package/types/phaser/display/canvas/graphics.d.ts +8 -5
- package/types/phaser/display/canvas/graphics.d.ts.map +1 -1
- package/types/phaser/display/canvas/masker.d.ts +5 -3
- package/types/phaser/display/canvas/masker.d.ts.map +1 -1
- package/types/phaser/display/canvas/pool.d.ts +20 -13
- package/types/phaser/display/canvas/pool.d.ts.map +1 -1
- package/types/phaser/display/canvas/tinter.d.ts +19 -14
- package/types/phaser/display/canvas/tinter.d.ts.map +1 -1
- package/types/phaser/display/canvas/util.d.ts +47 -38
- package/types/phaser/display/canvas/util.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +5 -5
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +28 -21
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/graphics_data.d.ts +1 -1
- package/types/phaser/display/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/graphics_data_util.d.ts +3 -2
- package/types/phaser/display/graphics_data_util.d.ts.map +1 -1
- package/types/phaser/display/group.d.ts +14 -6
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +14 -5
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/sprite_batch.d.ts +8 -3
- package/types/phaser/display/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/sprite_util.d.ts +19 -14
- package/types/phaser/display/sprite_util.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +25 -16
- package/types/phaser/display/text.d.ts.map +1 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts +1 -1
- package/types/phaser/display/webgl/base_texture.d.ts +1 -1
- package/types/phaser/display/webgl/base_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/blend_manager.d.ts +1 -1
- package/types/phaser/display/webgl/earcut.d.ts +106 -106
- package/types/phaser/display/webgl/earcut_node.d.ts +1 -1
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts +1 -1
- package/types/phaser/display/webgl/filter_manager.d.ts +1 -1
- package/types/phaser/display/webgl/graphics.d.ts +31 -31
- package/types/phaser/display/webgl/graphics_data.d.ts +2 -2
- package/types/phaser/display/webgl/mask_manager.d.ts +6 -4
- package/types/phaser/display/webgl/mask_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/render_texture.d.ts +3 -3
- package/types/phaser/display/webgl/render_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/renderer.d.ts +1 -1
- package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture.d.ts +1 -1
- package/types/phaser/display/webgl/texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture_util.d.ts +10 -8
- package/types/phaser/display/webgl/texture_util.d.ts.map +1 -1
- package/types/phaser/display/webgl/util.d.ts +20 -16
- package/types/phaser/display/webgl/util.d.ts.map +1 -1
- package/types/phaser/geom/circle.d.ts +16 -9
- package/types/phaser/geom/circle.d.ts.map +1 -1
- package/types/phaser/geom/ellipse.d.ts +13 -5
- package/types/phaser/geom/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/line.d.ts +16 -8
- package/types/phaser/geom/line.d.ts.map +1 -1
- package/types/phaser/geom/matrix.d.ts +21 -11
- package/types/phaser/geom/matrix.d.ts.map +1 -1
- package/types/phaser/geom/point.d.ts +26 -20
- package/types/phaser/geom/point.d.ts.map +1 -1
- package/types/phaser/geom/polygon.d.ts +4 -4
- package/types/phaser/geom/polygon.d.ts.map +1 -1
- package/types/phaser/geom/rectangle.d.ts +22 -14
- package/types/phaser/geom/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/rounded_rectangle.d.ts +11 -2
- package/types/phaser/geom/rounded_rectangle.d.ts.map +1 -1
- package/types/phaser/geom/util/circle.d.ts +42 -33
- package/types/phaser/geom/util/circle.d.ts.map +1 -1
- package/types/phaser/geom/util/ellipse.d.ts +7 -12
- package/types/phaser/geom/util/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/util/line.d.ts +30 -23
- package/types/phaser/geom/util/line.d.ts.map +1 -1
- package/types/phaser/geom/util/matrix.d.ts +12 -10
- package/types/phaser/geom/util/matrix.d.ts.map +1 -1
- package/types/phaser/geom/util/point.d.ts +118 -96
- package/types/phaser/geom/util/point.d.ts.map +1 -1
- package/types/phaser/geom/util/polygon.d.ts +6 -11
- package/types/phaser/geom/util/polygon.d.ts.map +1 -1
- package/types/phaser/geom/util/rectangle.d.ts +91 -74
- package/types/phaser/geom/util/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/util/rounded_rectangle.d.ts +6 -11
- package/types/phaser/geom/util/rounded_rectangle.d.ts.map +1 -1
- package/types/phaser/util/math.d.ts +89 -69
- package/types/phaser/util/math.d.ts.map +1 -1
- package/tsconfig.json +0 -110
|
@@ -1,42 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* TBD.
|
|
2
3
|
*
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {
|
|
5
|
-
* @returns {
|
|
4
|
+
* @param {Line} input - TBD.
|
|
5
|
+
* @param {Line} output - TBD.
|
|
6
|
+
* @returns {Line} TBD.
|
|
6
7
|
*/
|
|
7
|
-
export function clone(input:
|
|
8
|
+
export function clone(input: Line, output?: Line): Line;
|
|
8
9
|
/**
|
|
10
|
+
* TBD.
|
|
9
11
|
*
|
|
10
|
-
* @param {object} a TBD
|
|
11
|
-
* @param {object} b TBD
|
|
12
|
-
* @param {object} e TBD
|
|
13
|
-
* @param {object} f TBD
|
|
14
|
-
* @param {boolean} asSegment TBD
|
|
15
|
-
* @param {
|
|
16
|
-
* @returns {boolean} TBD
|
|
12
|
+
* @param {object} a - TBD.
|
|
13
|
+
* @param {object} b - TBD.
|
|
14
|
+
* @param {object} e - TBD.
|
|
15
|
+
* @param {object} f - TBD.
|
|
16
|
+
* @param {boolean} asSegment - TBD.
|
|
17
|
+
* @param {Point} output - TBD.
|
|
18
|
+
* @returns {boolean} TBD.
|
|
17
19
|
*/
|
|
18
|
-
export function intersectsPoints(a: object, b: object, e: object, f: object, asSegment?: boolean, output?:
|
|
20
|
+
export function intersectsPoints(a: object, b: object, e: object, f: object, asSegment?: boolean, output?: Point): boolean;
|
|
19
21
|
/**
|
|
22
|
+
* TBD.
|
|
20
23
|
*
|
|
21
|
-
* @param {object} a TBD
|
|
22
|
-
* @param {object} b TBD
|
|
23
|
-
* @param {boolean} asSegment TBD
|
|
24
|
-
* @param {object} result TBD
|
|
25
|
-
* @returns {boolean} TBD
|
|
24
|
+
* @param {object} a - TBD.
|
|
25
|
+
* @param {object} b - TBD.
|
|
26
|
+
* @param {boolean} asSegment - TBD.
|
|
27
|
+
* @param {object} result - TBD.
|
|
28
|
+
* @returns {boolean} TBD.
|
|
26
29
|
*/
|
|
27
30
|
export function intersects(a: object, b: object, asSegment: boolean, result: object): boolean;
|
|
28
31
|
/**
|
|
32
|
+
* TBD.
|
|
29
33
|
*
|
|
30
|
-
* @param {object} line TBD
|
|
31
|
-
* @param {object} rect TBD
|
|
32
|
-
* @returns {boolean} TBD
|
|
34
|
+
* @param {object} line - TBD.
|
|
35
|
+
* @param {object} rect - TBD.
|
|
36
|
+
* @returns {boolean} TBD.
|
|
33
37
|
*/
|
|
34
38
|
export function intersectsRectangle(line: object, rect: object): boolean;
|
|
35
39
|
/**
|
|
40
|
+
* TBD.
|
|
36
41
|
*
|
|
37
|
-
* @param {object} a TBD
|
|
38
|
-
* @param {object} b TBD
|
|
39
|
-
* @returns {number} TBD
|
|
42
|
+
* @param {object} a - TBD.
|
|
43
|
+
* @param {object} b - TBD.
|
|
44
|
+
* @returns {number} TBD.
|
|
40
45
|
*/
|
|
41
46
|
export function reflect(a: object, b: object): number;
|
|
47
|
+
import { Line } from '../line';
|
|
48
|
+
import { Point } from '../point';
|
|
42
49
|
//# sourceMappingURL=line.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/line.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/line.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,6BAJW,IAAI,WACJ,IAAI,GACF,IAAI,CAShB;AAED;;;;;;;;;;GAUG;AACH,oCARW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,cACN,OAAO,WACP,KAAK,GACH,OAAO,CA0BnB;AAED;;;;;;;;GAQG;AACH,8BANW,MAAM,KACN,MAAM,aACN,OAAO,UACP,MAAM,GACJ,OAAO,CAInB;AAED;;;;;;GAMG;AACH,0CAJW,MAAM,QACN,MAAM,GACJ,OAAO,CAmDnB;AAED;;;;;;GAMG;AACH,2BAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAIlB;qBAxIqB,SAAS;sBADT,UAAU"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* TBD.
|
|
2
3
|
*
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {
|
|
5
|
-
* @returns {
|
|
4
|
+
* @param {Matrix} input - TBD.
|
|
5
|
+
* @param {Matrix} output - TBD.
|
|
6
|
+
* @returns {Matrix} TBD.
|
|
6
7
|
*/
|
|
7
|
-
export function clone(input:
|
|
8
|
+
export function clone(input: Matrix, output?: Matrix): Matrix;
|
|
8
9
|
/**
|
|
9
|
-
* TBD
|
|
10
|
+
* TBD.
|
|
10
11
|
*
|
|
11
|
-
* @returns {
|
|
12
|
+
* @returns {Matrix} TBD.
|
|
12
13
|
*/
|
|
13
|
-
export function getIdentityMatrix():
|
|
14
|
+
export function getIdentityMatrix(): Matrix;
|
|
14
15
|
/**
|
|
15
|
-
* TBD
|
|
16
|
+
* TBD.
|
|
16
17
|
*
|
|
17
|
-
* @returns {
|
|
18
|
+
* @returns {Matrix} TBD.
|
|
18
19
|
*/
|
|
19
|
-
export function getTempMatrix():
|
|
20
|
+
export function getTempMatrix(): Matrix;
|
|
21
|
+
import { Matrix } from '../matrix';
|
|
20
22
|
//# sourceMappingURL=matrix.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/matrix.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/matrix.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,6BAJW,MAAM,WACN,MAAM,GACJ,MAAM,CAWlB;AAED;;;;GAIG;AACH,qCAFa,MAAM,CAUlB;AAED;;;;GAIG;AACH,iCAFa,MAAM,CAUlB;uBAhDuB,WAAW"}
|
|
@@ -1,157 +1,179 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* TBD.
|
|
2
3
|
*
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
6
|
-
* @returns {
|
|
4
|
+
* @param {Point} a - TBD.
|
|
5
|
+
* @param {Point} b - TBD.
|
|
6
|
+
* @param {Point} output - TBD.
|
|
7
|
+
* @returns {Point} TBD.
|
|
7
8
|
*/
|
|
8
|
-
export function add(a:
|
|
9
|
+
export function add(a: Point, b: Point, output?: Point): Point;
|
|
9
10
|
/**
|
|
11
|
+
* TBD.
|
|
10
12
|
*
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {
|
|
13
|
-
* @param {
|
|
14
|
-
* @returns {
|
|
13
|
+
* @param {Point} a - TBD.
|
|
14
|
+
* @param {Point} b - TBD.
|
|
15
|
+
* @param {Point} output - TBD.
|
|
16
|
+
* @returns {Point} TBD.
|
|
15
17
|
*/
|
|
16
|
-
export function subtract(a:
|
|
18
|
+
export function subtract(a: Point, b: Point, output?: Point): Point;
|
|
17
19
|
/**
|
|
20
|
+
* TBD.
|
|
18
21
|
*
|
|
19
|
-
* @param {
|
|
20
|
-
* @param {
|
|
21
|
-
* @param {
|
|
22
|
-
* @returns {
|
|
22
|
+
* @param {Point} a - TBD.
|
|
23
|
+
* @param {Point} b - TBD.
|
|
24
|
+
* @param {Point} output - TBD.
|
|
25
|
+
* @returns {Point} TBD.
|
|
23
26
|
*/
|
|
24
|
-
export function multiply(a:
|
|
27
|
+
export function multiply(a: Point, b: Point, output?: Point): Point;
|
|
25
28
|
/**
|
|
29
|
+
* TBD.
|
|
26
30
|
*
|
|
27
|
-
* @param {
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
30
|
-
* @returns {
|
|
31
|
+
* @param {Point} a - TBD.
|
|
32
|
+
* @param {Point} b - TBD.
|
|
33
|
+
* @param {Point} output - TBD.
|
|
34
|
+
* @returns {Point} TBD.
|
|
31
35
|
*/
|
|
32
|
-
export function divide(a:
|
|
36
|
+
export function divide(a: Point, b: Point, output?: Point): Point;
|
|
33
37
|
/**
|
|
38
|
+
* TBD.
|
|
34
39
|
*
|
|
35
|
-
* @param {
|
|
36
|
-
* @param {
|
|
37
|
-
* @returns {boolean} TBD
|
|
40
|
+
* @param {Point} a - TBD.
|
|
41
|
+
* @param {Point} b - TBD.
|
|
42
|
+
* @returns {boolean} TBD.
|
|
38
43
|
*/
|
|
39
|
-
export function equals(a:
|
|
44
|
+
export function equals(a: Point, b: Point): boolean;
|
|
40
45
|
/**
|
|
46
|
+
* TBD.
|
|
41
47
|
*
|
|
42
|
-
* @param {
|
|
43
|
-
* @param {
|
|
44
|
-
* @returns {number} TBD
|
|
48
|
+
* @param {Point} a - TBD.
|
|
49
|
+
* @param {Point} b - TBD.
|
|
50
|
+
* @returns {number} TBD.
|
|
45
51
|
*/
|
|
46
|
-
export function angle(a:
|
|
52
|
+
export function angle(a: Point, b: Point): number;
|
|
47
53
|
/**
|
|
54
|
+
* TBD.
|
|
48
55
|
*
|
|
49
|
-
* @param {
|
|
50
|
-
* @param {
|
|
51
|
-
* @returns {
|
|
56
|
+
* @param {Point} a - TBD.
|
|
57
|
+
* @param {Point} output - TBD.
|
|
58
|
+
* @returns {Point} TBD.
|
|
52
59
|
*/
|
|
53
|
-
export function negative(a:
|
|
60
|
+
export function negative(a: Point, output?: Point): Point;
|
|
54
61
|
/**
|
|
62
|
+
* TBD.
|
|
55
63
|
*
|
|
56
|
-
* @param {
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {number} s TBD
|
|
59
|
-
* @param {
|
|
60
|
-
* @returns {
|
|
64
|
+
* @param {Point} a - TBD.
|
|
65
|
+
* @param {Point} b - TBD.
|
|
66
|
+
* @param {number} s - TBD.
|
|
67
|
+
* @param {Point} output - TBD.
|
|
68
|
+
* @returns {Point} TBD.
|
|
61
69
|
*/
|
|
62
|
-
export function multiplyAdd(a:
|
|
70
|
+
export function multiplyAdd(a: Point, b: Point, s: number, output?: Point): Point;
|
|
63
71
|
/**
|
|
72
|
+
* TBD.
|
|
64
73
|
*
|
|
65
|
-
* @param {
|
|
66
|
-
* @param {
|
|
67
|
-
* @param {number} f TBD
|
|
68
|
-
* @param {
|
|
69
|
-
* @returns {
|
|
74
|
+
* @param {Point} a - TBD.
|
|
75
|
+
* @param {Point} b - TBD.
|
|
76
|
+
* @param {number} f - TBD.
|
|
77
|
+
* @param {Point} output - TBD.
|
|
78
|
+
* @returns {Point} TBD.
|
|
70
79
|
*/
|
|
71
|
-
export function interpolate(a:
|
|
80
|
+
export function interpolate(a: Point, b: Point, f: number, output?: Point): Point;
|
|
72
81
|
/**
|
|
82
|
+
* TBD.
|
|
73
83
|
*
|
|
74
|
-
* @param {
|
|
75
|
-
* @param {
|
|
76
|
-
* @returns {
|
|
84
|
+
* @param {Point} a - TBD.
|
|
85
|
+
* @param {Point} output - TBD.
|
|
86
|
+
* @returns {Point} TBD.
|
|
77
87
|
*/
|
|
78
|
-
export function perp(a:
|
|
88
|
+
export function perp(a: Point, output?: Point): Point;
|
|
79
89
|
/**
|
|
90
|
+
* TBD.
|
|
80
91
|
*
|
|
81
|
-
* @param {
|
|
82
|
-
* @param {
|
|
83
|
-
* @returns {
|
|
92
|
+
* @param {Point} a - TBD.
|
|
93
|
+
* @param {Point} output - TBD.
|
|
94
|
+
* @returns {Point} TBD.
|
|
84
95
|
*/
|
|
85
|
-
export function rperp(a:
|
|
96
|
+
export function rperp(a: Point, output?: Point): Point;
|
|
86
97
|
/**
|
|
98
|
+
* TBD.
|
|
87
99
|
*
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
90
|
-
* @param {boolean} round TBD
|
|
91
|
-
* @returns {number} TBD
|
|
100
|
+
* @param {Point} a - TBD.
|
|
101
|
+
* @param {Point} b - TBD.
|
|
102
|
+
* @param {boolean} round - TBD.
|
|
103
|
+
* @returns {number} TBD.
|
|
92
104
|
*/
|
|
93
|
-
export function distance(a:
|
|
105
|
+
export function distance(a: Point, b: Point, round?: boolean): number;
|
|
94
106
|
/**
|
|
107
|
+
* TBD.
|
|
95
108
|
*
|
|
96
|
-
* @param {
|
|
97
|
-
* @param {
|
|
98
|
-
* @param {
|
|
99
|
-
* @returns {
|
|
109
|
+
* @param {Point} a - TBD.
|
|
110
|
+
* @param {Point} b - TBD.
|
|
111
|
+
* @param {Point} output - TBD.
|
|
112
|
+
* @returns {Point} TBD.
|
|
100
113
|
*/
|
|
101
|
-
export function project(a:
|
|
114
|
+
export function project(a: Point, b: Point, output?: Point): Point;
|
|
102
115
|
/**
|
|
116
|
+
* TBD.
|
|
103
117
|
*
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {
|
|
106
|
-
* @param {
|
|
107
|
-
* @returns {
|
|
118
|
+
* @param {Point} a - TBD.
|
|
119
|
+
* @param {Point} b - TBD.
|
|
120
|
+
* @param {Point} output - TBD.
|
|
121
|
+
* @returns {Point} TBD.
|
|
108
122
|
*/
|
|
109
|
-
export function projectUnit(a:
|
|
123
|
+
export function projectUnit(a: Point, b: Point, output?: Point): Point;
|
|
110
124
|
/**
|
|
125
|
+
* TBD.
|
|
111
126
|
*
|
|
112
|
-
* @param {
|
|
113
|
-
* @param {
|
|
114
|
-
* @returns {
|
|
127
|
+
* @param {Point} a - TBD.
|
|
128
|
+
* @param {Point} output - TBD.
|
|
129
|
+
* @returns {Point} TBD.
|
|
115
130
|
*/
|
|
116
|
-
export function normalRightHand(a:
|
|
131
|
+
export function normalRightHand(a: Point, output?: Point): Point;
|
|
117
132
|
/**
|
|
133
|
+
* TBD.
|
|
118
134
|
*
|
|
119
|
-
* @param {
|
|
120
|
-
* @param {
|
|
121
|
-
* @returns {
|
|
135
|
+
* @param {Point} a - TBD.
|
|
136
|
+
* @param {Point} output - TBD.
|
|
137
|
+
* @returns {Point} TBD.
|
|
122
138
|
*/
|
|
123
|
-
export function normalize(a:
|
|
139
|
+
export function normalize(a: Point, output?: Point): Point;
|
|
124
140
|
/**
|
|
141
|
+
* TBD.
|
|
125
142
|
*
|
|
126
|
-
* @param {
|
|
127
|
-
* @param {number} x TBD
|
|
128
|
-
* @param {number} y TBD
|
|
129
|
-
* @param {number} ang TBD
|
|
130
|
-
* @param {boolean} asDegrees TBD
|
|
131
|
-
* @param {number} dist TBD
|
|
132
|
-
* @returns {object} TBD
|
|
143
|
+
* @param {Point} a - TBD.
|
|
144
|
+
* @param {number} x - TBD.
|
|
145
|
+
* @param {number} y - TBD.
|
|
146
|
+
* @param {number} ang - TBD.
|
|
147
|
+
* @param {boolean} asDegrees - TBD.
|
|
148
|
+
* @param {number} dist - TBD.
|
|
149
|
+
* @returns {object} TBD.
|
|
133
150
|
*/
|
|
134
|
-
export function rotate(a:
|
|
151
|
+
export function rotate(a: Point, x: number, y: number, ang: number, asDegrees: boolean, dist: number): object;
|
|
135
152
|
/**
|
|
153
|
+
* TBD.
|
|
136
154
|
*
|
|
137
|
-
* @param {
|
|
138
|
-
* @param {
|
|
139
|
-
* @returns {
|
|
155
|
+
* @param {Point[]} points - TBD.
|
|
156
|
+
* @param {Point} output - TBD.
|
|
157
|
+
* @returns {Point} TBD.
|
|
158
|
+
* @throws Error TBD.
|
|
140
159
|
*/
|
|
141
|
-
export function centroid(points:
|
|
160
|
+
export function centroid(points: Point[], output?: Point): Point;
|
|
142
161
|
/**
|
|
162
|
+
* TBD.
|
|
143
163
|
*
|
|
144
|
-
* @param {object} obj TBD
|
|
145
|
-
* @param {string} xProp TBD
|
|
146
|
-
* @param {string} yProp TBD
|
|
147
|
-
* @returns {
|
|
164
|
+
* @param {object} obj - TBD.
|
|
165
|
+
* @param {string} xProp - TBD.
|
|
166
|
+
* @param {string} yProp - TBD.
|
|
167
|
+
* @returns {Point} TBD.
|
|
148
168
|
*/
|
|
149
|
-
export function parse(obj: object, xProp?: string, yProp?: string):
|
|
169
|
+
export function parse(obj: object, xProp?: string, yProp?: string): Point;
|
|
150
170
|
/**
|
|
171
|
+
* TBD.
|
|
151
172
|
*
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {
|
|
154
|
-
* @returns {
|
|
173
|
+
* @param {Point} input - TBD.
|
|
174
|
+
* @param {Point} output - TBD.
|
|
175
|
+
* @returns {Point} TBD.
|
|
155
176
|
*/
|
|
156
|
-
export function clone(input:
|
|
177
|
+
export function clone(input: Point, output?: Point): Point;
|
|
178
|
+
import { Point } from '../point';
|
|
157
179
|
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/point.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/point.js"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,uBALW,KAAK,KACL,KAAK,WACL,KAAK,GACH,KAAK,CAOjB;AAED;;;;;;;GAOG;AACH,4BALW,KAAK,KACL,KAAK,WACL,KAAK,GACH,KAAK,CAOjB;AAED;;;;;;;GAOG;AACH,4BALW,KAAK,KACL,KAAK,WACL,KAAK,GACH,KAAK,CAOjB;AAED;;;;;;;GAOG;AACH,0BALW,KAAK,KACL,KAAK,WACL,KAAK,GACH,KAAK,CAOjB;AAED;;;;;;GAMG;AACH,0BAJW,KAAK,KACL,KAAK,GACH,OAAO,CAInB;AAED;;;;;;GAMG;AACH,yBAJW,KAAK,KACL,KAAK,GACH,MAAM,CAIlB;AAED;;;;;;GAMG;AACH,4BAJW,KAAK,WACL,KAAK,GACH,KAAK,CAKjB;AAED;;;;;;;;GAQG;AACH,+BANW,KAAK,KACL,KAAK,KACL,MAAM,WACN,KAAK,GACH,KAAK,CAKjB;AAED;;;;;;;;GAQG;AACH,+BANW,KAAK,KACL,KAAK,KACL,MAAM,WACN,KAAK,GACH,KAAK,CAKjB;AAED;;;;;;GAMG;AACH,wBAJW,KAAK,WACL,KAAK,GACH,KAAK,CAKjB;AAED;;;;;;GAMG;AACH,yBAJW,KAAK,WACL,KAAK,GACH,KAAK,CAKjB;AAED;;;;;;;GAOG;AACH,4BALW,KAAK,KACL,KAAK,UACL,OAAO,GACL,MAAM,CAOlB;AAED;;;;;;;GAOG;AACH,2BALW,KAAK,KACL,KAAK,WACL,KAAK,GACH,KAAK,CASjB;AAED;;;;;;;GAOG;AACH,+BALW,KAAK,KACL,KAAK,WACL,KAAK,GACH,KAAK,CASjB;AAED;;;;;;GAMG;AACH,mCAJW,KAAK,WACL,KAAK,GACH,KAAK,CAKjB;AAED;;;;;;GAMG;AACH,6BAJW,KAAK,WACL,KAAK,GACH,KAAK,CASjB;AAED;;;;;;;;;;GAUG;AACH,0BARW,KAAK,KACL,MAAM,KACN,MAAM,OACN,MAAM,aACN,OAAO,QACP,MAAM,GACJ,MAAM,CAoBlB;AAED;;;;;;;GAOG;AACH,iCALW,KAAK,EAAE,WACP,KAAK,GACH,KAAK,CAkBjB;AAED;;;;;;;GAOG;AACH,2BALW,MAAM,UACN,MAAM,UACN,MAAM,GACJ,KAAK,CAWjB;AAED;;;;;;GAMG;AACH,6BAJW,KAAK,WACL,KAAK,GACH,KAAK,CAMjB;sBAvTqB,UAAU"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TBD
|
|
2
|
+
* TBD.
|
|
3
3
|
*
|
|
4
|
-
* @
|
|
5
|
-
* @
|
|
4
|
+
* @param {Polygon} input - TBD.
|
|
5
|
+
* @param {Polygon} output - TBD.
|
|
6
|
+
* @returns {Polygon} TBD.
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @param {object} input TBD
|
|
11
|
-
* @param {object} output TBD
|
|
12
|
-
* @returns {object} TBD
|
|
13
|
-
*/
|
|
14
|
-
export function clone(input: object, output?: object): object;
|
|
8
|
+
export function clone(input: Polygon, output?: Polygon): Polygon;
|
|
9
|
+
import { Polygon } from '../polygon';
|
|
15
10
|
//# sourceMappingURL=polygon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/polygon.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../../src/phaser/geom/util/polygon.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,6BAJW,OAAO,WACP,OAAO,GACL,OAAO,CAMnB;wBAbwB,YAAY"}
|
|
@@ -1,124 +1,141 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* TBD.
|
|
2
3
|
*
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {number} dx TBD
|
|
5
|
-
* @param {number} dy TBD
|
|
6
|
-
* @returns {
|
|
4
|
+
* @param {Rectangle} a - TBD.
|
|
5
|
+
* @param {number} dx - TBD.
|
|
6
|
+
* @param {number} dy - TBD.
|
|
7
|
+
* @returns {Rectangle} TBD.
|
|
7
8
|
*/
|
|
8
|
-
export function inflate(a:
|
|
9
|
+
export function inflate(a: Rectangle, dx: number, dy: number): Rectangle;
|
|
9
10
|
/**
|
|
11
|
+
* TBD.
|
|
10
12
|
*
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {object} point TBD
|
|
13
|
-
* @returns {
|
|
13
|
+
* @param {Rectangle} a - TBD.
|
|
14
|
+
* @param {object} point - TBD.
|
|
15
|
+
* @returns {Rectangle} TBD.
|
|
14
16
|
*/
|
|
15
|
-
export function inflatePoint(a:
|
|
17
|
+
export function inflatePoint(a: Rectangle, point: object): Rectangle;
|
|
16
18
|
/**
|
|
19
|
+
* TBD.
|
|
17
20
|
*
|
|
18
|
-
* @param {
|
|
19
|
-
* @param {
|
|
20
|
-
* @returns {
|
|
21
|
+
* @param {Rectangle} a - TBD.
|
|
22
|
+
* @param {Point} output - TBD.
|
|
23
|
+
* @returns {Point} TBD.
|
|
21
24
|
*/
|
|
22
|
-
export function size(a:
|
|
25
|
+
export function size(a: Rectangle, output?: Point): Point;
|
|
23
26
|
/**
|
|
27
|
+
* TBD.
|
|
24
28
|
*
|
|
25
|
-
* @param {
|
|
26
|
-
* @param {
|
|
27
|
-
* @returns {
|
|
29
|
+
* @param {Rectangle} input - TBD.
|
|
30
|
+
* @param {Rectangle} output - TBD.
|
|
31
|
+
* @returns {Rectangle} TBD.
|
|
28
32
|
*/
|
|
29
|
-
export function clone(input:
|
|
33
|
+
export function clone(input: Rectangle, output?: Rectangle): Rectangle;
|
|
30
34
|
/**
|
|
35
|
+
* TBD.
|
|
31
36
|
*
|
|
32
|
-
* @param {
|
|
33
|
-
* @param {number} x TBD
|
|
34
|
-
* @param {number} y TBD
|
|
35
|
-
* @returns {boolean} TBD
|
|
37
|
+
* @param {Rectangle} a - TBD.
|
|
38
|
+
* @param {number} x - TBD.
|
|
39
|
+
* @param {number} y - TBD.
|
|
40
|
+
* @returns {boolean} TBD.
|
|
36
41
|
*/
|
|
37
|
-
export function contains(a:
|
|
42
|
+
export function contains(a: Rectangle, x: number, y: number): boolean;
|
|
38
43
|
/**
|
|
44
|
+
* TBD.
|
|
39
45
|
*
|
|
40
|
-
* @param {number} rx TBD
|
|
41
|
-
* @param {number} ry TBD
|
|
42
|
-
* @param {number} rw TBD
|
|
43
|
-
* @param {number} rh TBD
|
|
44
|
-
* @param {number} x TBD
|
|
45
|
-
* @param {number} y TBD
|
|
46
|
-
* @returns {boolean} TBD
|
|
46
|
+
* @param {number} rx - TBD.
|
|
47
|
+
* @param {number} ry - TBD.
|
|
48
|
+
* @param {number} rw - TBD.
|
|
49
|
+
* @param {number} rh - TBD.
|
|
50
|
+
* @param {number} x - TBD.
|
|
51
|
+
* @param {number} y - TBD.
|
|
52
|
+
* @returns {boolean} TBD.
|
|
47
53
|
*/
|
|
48
54
|
export function containsRaw(rx: number, ry: number, rw: number, rh: number, x: number, y: number): boolean;
|
|
49
55
|
/**
|
|
56
|
+
* TBD.
|
|
50
57
|
*
|
|
51
|
-
* @param {
|
|
52
|
-
* @param {
|
|
53
|
-
* @returns {boolean} TBD
|
|
58
|
+
* @param {Rectangle} a - TBD.
|
|
59
|
+
* @param {Point} point - TBD.
|
|
60
|
+
* @returns {boolean} TBD.
|
|
54
61
|
*/
|
|
55
|
-
export function containsPoint(a:
|
|
62
|
+
export function containsPoint(a: Rectangle, point: Point): boolean;
|
|
56
63
|
/**
|
|
64
|
+
* TBD.
|
|
57
65
|
*
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {
|
|
60
|
-
* @returns {boolean} TBD
|
|
66
|
+
* @param {Rectangle} a - TBD.
|
|
67
|
+
* @param {Rectangle} b - TBD.
|
|
68
|
+
* @returns {boolean} TBD.
|
|
61
69
|
*/
|
|
62
|
-
export function containsRect(a:
|
|
70
|
+
export function containsRect(a: Rectangle, b: Rectangle): boolean;
|
|
63
71
|
/**
|
|
72
|
+
* TBD.
|
|
64
73
|
*
|
|
65
|
-
* @param {
|
|
66
|
-
* @param {
|
|
67
|
-
* @returns {boolean} TBD
|
|
74
|
+
* @param {Rectangle} a - TBD.
|
|
75
|
+
* @param {Rectangle} b - TBD.
|
|
76
|
+
* @returns {boolean} TBD.
|
|
68
77
|
*/
|
|
69
|
-
export function equals(a:
|
|
78
|
+
export function equals(a: Rectangle, b: Rectangle): boolean;
|
|
70
79
|
/**
|
|
80
|
+
* TBD.
|
|
71
81
|
*
|
|
72
|
-
* @param {
|
|
73
|
-
* @param {
|
|
74
|
-
* @returns {boolean} TBD
|
|
82
|
+
* @param {Rectangle} a - TBD.
|
|
83
|
+
* @param {Rectangle} b - TBD.
|
|
84
|
+
* @returns {boolean} TBD.
|
|
75
85
|
*/
|
|
76
|
-
export function sameDimensions(a:
|
|
86
|
+
export function sameDimensions(a: Rectangle, b: Rectangle): boolean;
|
|
77
87
|
/**
|
|
88
|
+
* TBD.
|
|
78
89
|
*
|
|
79
|
-
* @param {
|
|
80
|
-
* @param {
|
|
81
|
-
* @returns {boolean} TBD
|
|
90
|
+
* @param {Rectangle} a - TBD.
|
|
91
|
+
* @param {Rectangle} b - TBD.
|
|
92
|
+
* @returns {boolean} TBD.
|
|
82
93
|
*/
|
|
83
|
-
export function intersects(a:
|
|
94
|
+
export function intersects(a: Rectangle, b: Rectangle): boolean;
|
|
84
95
|
/**
|
|
96
|
+
* TBD.
|
|
85
97
|
*
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {
|
|
89
|
-
* @returns {
|
|
98
|
+
* @param {Rectangle} a - TBD.
|
|
99
|
+
* @param {Rectangle} b - TBD.
|
|
100
|
+
* @param {Rectangle} output - TBD.
|
|
101
|
+
* @returns {Rectangle} TBD.
|
|
90
102
|
*/
|
|
91
|
-
export function intersection(a:
|
|
103
|
+
export function intersection(a: Rectangle, b: Rectangle, output?: Rectangle): Rectangle;
|
|
92
104
|
/**
|
|
105
|
+
* TBD.
|
|
93
106
|
*
|
|
94
|
-
* @param {
|
|
95
|
-
* @param {number} left TBD
|
|
96
|
-
* @param {number} right TBD
|
|
97
|
-
* @param {number} top TBD
|
|
98
|
-
* @param {number} bottom TBD
|
|
99
|
-
* @param {number} tolerance TBD
|
|
100
|
-
* @returns {boolean} TBD
|
|
107
|
+
* @param {Rectangle} a - TBD.
|
|
108
|
+
* @param {number} left - TBD.
|
|
109
|
+
* @param {number} right - TBD.
|
|
110
|
+
* @param {number} top - TBD.
|
|
111
|
+
* @param {number} bottom - TBD.
|
|
112
|
+
* @param {number} tolerance - TBD.
|
|
113
|
+
* @returns {boolean} TBD.
|
|
101
114
|
*/
|
|
102
|
-
export function intersectsRaw(a:
|
|
115
|
+
export function intersectsRaw(a: Rectangle, left: number, right: number, top: number, bottom: number, tolerance?: number): boolean;
|
|
103
116
|
/**
|
|
117
|
+
* TBD.
|
|
104
118
|
*
|
|
105
|
-
* @param {
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
108
|
-
* @returns {
|
|
119
|
+
* @param {Rectangle} a - TBD.
|
|
120
|
+
* @param {Rectangle} b - TBD.
|
|
121
|
+
* @param {Rectangle} output - TBD.
|
|
122
|
+
* @returns {Rectangle} TBD.
|
|
109
123
|
*/
|
|
110
|
-
export function union(a:
|
|
124
|
+
export function union(a: Rectangle, b: Rectangle, output?: Rectangle): Rectangle;
|
|
111
125
|
/**
|
|
126
|
+
* TBD.
|
|
112
127
|
*
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {
|
|
115
|
-
* @returns {
|
|
128
|
+
* @param {Point[]} points - TBD.
|
|
129
|
+
* @param {Rectangle} output - TBD.
|
|
130
|
+
* @returns {Rectangle} TBD.
|
|
116
131
|
*/
|
|
117
|
-
export function aabb(points:
|
|
132
|
+
export function aabb(points: Point[], output?: Rectangle): Rectangle;
|
|
118
133
|
/**
|
|
119
|
-
* TBD
|
|
134
|
+
* TBD.
|
|
120
135
|
*
|
|
121
|
-
* @returns {
|
|
136
|
+
* @returns {Rectangle} TBD.
|
|
122
137
|
*/
|
|
123
|
-
export function getEmptyRectangle():
|
|
138
|
+
export function getEmptyRectangle(): Rectangle;
|
|
139
|
+
import { Rectangle } from '../rectangle';
|
|
140
|
+
import { Point } from '../point';
|
|
124
141
|
//# sourceMappingURL=rectangle.d.ts.map
|