@vpmedia/phaser 1.94.0 → 1.96.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/CHANGELOG.md +41 -0
- package/package.json +11 -11
- package/src/phaser/core/animation.js +79 -56
- package/src/phaser/core/animation_manager.js +55 -55
- package/src/phaser/core/animation_parser.js +2 -2
- package/src/phaser/core/cache.js +154 -154
- package/src/phaser/core/device.js +2 -1
- package/src/phaser/core/device_util.js +27 -27
- package/src/phaser/core/dom.js +43 -43
- package/src/phaser/core/event_manager.js +63 -63
- package/src/phaser/core/factory.js +47 -47
- package/src/phaser/core/frame.js +30 -30
- package/src/phaser/core/frame_data.js +30 -28
- package/src/phaser/core/frame_util.js +8 -8
- package/src/phaser/core/game.js +35 -19
- package/src/phaser/core/input_pointer.js +18 -0
- package/src/phaser/core/loader.js +171 -171
- package/src/phaser/core/loader_parser.js +22 -22
- package/src/phaser/core/raf.js +1 -1
- package/src/phaser/core/scale_manager.js +3 -2
- package/src/phaser/core/scene.js +16 -10
- package/src/phaser/core/scene_manager.js +51 -43
- package/src/phaser/core/signal.js +56 -52
- package/src/phaser/core/sound.js +54 -54
- package/src/phaser/core/sound_manager.js +49 -49
- package/src/phaser/core/stage.js +16 -16
- package/src/phaser/core/time.js +54 -30
- package/src/phaser/core/timer.js +82 -64
- package/src/phaser/core/timer_event.js +9 -9
- package/src/phaser/core/tween.js +106 -90
- package/src/phaser/core/tween_data.js +30 -30
- package/src/phaser/core/tween_manager.js +32 -24
- package/src/phaser/core/world.js +4 -3
- package/src/phaser/display/bitmap_text.js +72 -54
- package/src/phaser/display/button.js +48 -47
- package/src/phaser/display/canvas/buffer.js +8 -8
- package/src/phaser/display/canvas/graphics.js +8 -8
- package/src/phaser/display/canvas/masker.js +5 -5
- package/src/phaser/display/canvas/pool.js +18 -18
- package/src/phaser/display/canvas/renderer.js +17 -16
- package/src/phaser/display/canvas/tinter.js +22 -22
- package/src/phaser/display/canvas/util.js +42 -42
- package/src/phaser/display/display_object.js +119 -108
- package/src/phaser/display/graphics.js +129 -112
- package/src/phaser/display/graphics_data.js +10 -10
- package/src/phaser/display/graphics_data_util.js +3 -3
- package/src/phaser/display/group.js +63 -50
- package/src/phaser/display/image.js +68 -50
- package/src/phaser/display/sprite_batch.js +2 -2
- package/src/phaser/display/sprite_util.js +19 -19
- package/src/phaser/display/text.js +217 -187
- package/src/phaser/display/webgl/abstract_filter.js +4 -4
- package/src/phaser/display/webgl/base_texture.js +9 -9
- package/src/phaser/display/webgl/blend_manager.js +7 -7
- package/src/phaser/display/webgl/earcut.js +95 -95
- package/src/phaser/display/webgl/earcut_node.js +4 -4
- package/src/phaser/display/webgl/fast_sprite_batch.js +15 -15
- package/src/phaser/display/webgl/filter_manager.js +9 -9
- package/src/phaser/display/webgl/filter_texture.js +10 -10
- package/src/phaser/display/webgl/graphics.js +37 -37
- package/src/phaser/display/webgl/graphics_data.js +4 -4
- package/src/phaser/display/webgl/mask_manager.js +6 -6
- package/src/phaser/display/webgl/render_texture.js +16 -16
- package/src/phaser/display/webgl/renderer.js +21 -20
- package/src/phaser/display/webgl/shader/complex.js +4 -4
- package/src/phaser/display/webgl/shader/fast.js +4 -4
- package/src/phaser/display/webgl/shader/normal.js +8 -8
- package/src/phaser/display/webgl/shader/primitive.js +4 -4
- package/src/phaser/display/webgl/shader/strip.js +4 -4
- package/src/phaser/display/webgl/shader_manager.js +9 -9
- package/src/phaser/display/webgl/sprite_batch.js +18 -18
- package/src/phaser/display/webgl/stencil_manager.js +16 -16
- package/src/phaser/display/webgl/texture.js +13 -13
- package/src/phaser/display/webgl/texture_util.js +8 -8
- package/src/phaser/display/webgl/util.js +25 -25
- package/src/phaser/geom/circle.js +74 -69
- package/src/phaser/geom/ellipse.js +33 -28
- package/src/phaser/geom/line.js +96 -93
- package/src/phaser/geom/matrix.js +61 -54
- package/src/phaser/geom/point.js +99 -96
- package/src/phaser/geom/polygon.js +27 -22
- package/src/phaser/geom/rectangle.js +137 -132
- package/src/phaser/geom/rounded_rectangle.js +12 -12
- package/src/phaser/geom/util/circle.js +33 -33
- package/src/phaser/geom/util/ellipse.js +5 -5
- package/src/phaser/geom/util/line.js +26 -26
- package/src/phaser/geom/util/matrix.js +8 -8
- package/src/phaser/geom/util/point.js +97 -97
- package/src/phaser/geom/util/polygon.js +4 -4
- package/src/phaser/geom/util/rectangle.js +74 -74
- package/src/phaser/geom/util/rounded_rectangle.js +4 -4
- package/src/phaser/util/math.js +81 -81
- package/types/phaser/core/animation.d.ts +79 -56
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_manager.d.ts +55 -55
- package/types/phaser/core/animation_parser.d.ts +3 -2
- package/types/phaser/core/animation_parser.d.ts.map +1 -1
- package/types/phaser/core/cache.d.ts +154 -154
- package/types/phaser/core/device.d.ts.map +1 -1
- package/types/phaser/core/dom.d.ts +51 -44
- package/types/phaser/core/dom.d.ts.map +1 -1
- package/types/phaser/core/event_manager.d.ts +63 -63
- package/types/phaser/core/factory.d.ts +47 -47
- package/types/phaser/core/frame.d.ts +30 -30
- package/types/phaser/core/frame_data.d.ts +28 -27
- package/types/phaser/core/frame_data.d.ts.map +1 -1
- package/types/phaser/core/game.d.ts +54 -21
- package/types/phaser/core/game.d.ts.map +1 -1
- package/types/phaser/core/input_pointer.d.ts +18 -0
- package/types/phaser/core/input_pointer.d.ts.map +1 -1
- package/types/phaser/core/loader.d.ts +175 -172
- package/types/phaser/core/loader.d.ts.map +1 -1
- package/types/phaser/core/loader_parser.d.ts.map +1 -1
- package/types/phaser/core/raf.d.ts +1 -1
- package/types/phaser/core/scale_manager.d.ts +6 -5
- package/types/phaser/core/scale_manager.d.ts.map +1 -1
- package/types/phaser/core/scene.d.ts +15 -9
- package/types/phaser/core/scene.d.ts.map +1 -1
- package/types/phaser/core/scene_manager.d.ts +51 -43
- package/types/phaser/core/scene_manager.d.ts.map +1 -1
- package/types/phaser/core/signal.d.ts +54 -51
- package/types/phaser/core/signal.d.ts.map +1 -1
- package/types/phaser/core/sound.d.ts +54 -54
- package/types/phaser/core/sound_manager.d.ts +49 -49
- package/types/phaser/core/stage.d.ts +10 -10
- package/types/phaser/core/time.d.ts +54 -30
- package/types/phaser/core/time.d.ts.map +1 -1
- package/types/phaser/core/timer.d.ts +82 -64
- package/types/phaser/core/timer.d.ts.map +1 -1
- package/types/phaser/core/timer_event.d.ts +9 -9
- package/types/phaser/core/tween.d.ts +106 -90
- package/types/phaser/core/tween.d.ts.map +1 -1
- package/types/phaser/core/tween_data.d.ts +30 -30
- package/types/phaser/core/tween_manager.d.ts +35 -67
- package/types/phaser/core/tween_manager.d.ts.map +1 -1
- package/types/phaser/core/world.d.ts +4 -3
- package/types/phaser/core/world.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +76 -53
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/button.d.ts +47 -46
- package/types/phaser/display/button.d.ts.map +1 -1
- package/types/phaser/display/canvas/buffer.d.ts +8 -8
- package/types/phaser/display/canvas/graphics.d.ts +3 -3
- package/types/phaser/display/canvas/graphics.d.ts.map +1 -1
- package/types/phaser/display/canvas/pool.d.ts +6 -3
- package/types/phaser/display/canvas/pool.d.ts.map +1 -1
- package/types/phaser/display/canvas/renderer.d.ts +18 -17
- package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/types/phaser/display/canvas/util.d.ts +6 -6
- package/types/phaser/display/canvas/util.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +119 -108
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +118 -102
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/graphics_data.d.ts +10 -10
- package/types/phaser/display/group.d.ts +59 -47
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +58 -45
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +237 -188
- package/types/phaser/display/text.d.ts.map +1 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts +4 -4
- package/types/phaser/display/webgl/base_texture.d.ts +10 -10
- package/types/phaser/display/webgl/base_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/blend_manager.d.ts +6 -6
- package/types/phaser/display/webgl/earcut.d.ts +95 -95
- package/types/phaser/display/webgl/earcut_node.d.ts +4 -4
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts +15 -15
- package/types/phaser/display/webgl/filter_manager.d.ts +8 -8
- package/types/phaser/display/webgl/filter_texture.d.ts +10 -10
- package/types/phaser/display/webgl/graphics.d.ts +2 -2
- package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +4 -4
- package/types/phaser/display/webgl/render_texture.d.ts +16 -16
- package/types/phaser/display/webgl/renderer.d.ts +21 -20
- package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +4 -4
- package/types/phaser/display/webgl/shader/fast.d.ts +4 -4
- package/types/phaser/display/webgl/shader/normal.d.ts +8 -8
- package/types/phaser/display/webgl/shader/primitive.d.ts +4 -4
- package/types/phaser/display/webgl/shader/strip.d.ts +4 -4
- package/types/phaser/display/webgl/shader_manager.d.ts +8 -8
- package/types/phaser/display/webgl/sprite_batch.d.ts +17 -17
- package/types/phaser/display/webgl/stencil_manager.d.ts +15 -15
- package/types/phaser/display/webgl/texture.d.ts +12 -12
- package/types/phaser/display/webgl/texture_util.d.ts +4 -2
- package/types/phaser/display/webgl/texture_util.d.ts.map +1 -1
- package/types/phaser/geom/circle.d.ts +74 -69
- package/types/phaser/geom/circle.d.ts.map +1 -1
- package/types/phaser/geom/ellipse.d.ts +33 -28
- package/types/phaser/geom/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/line.d.ts +96 -93
- package/types/phaser/geom/line.d.ts.map +1 -1
- package/types/phaser/geom/matrix.d.ts +61 -54
- package/types/phaser/geom/matrix.d.ts.map +1 -1
- package/types/phaser/geom/point.d.ts +99 -96
- package/types/phaser/geom/point.d.ts.map +1 -1
- package/types/phaser/geom/polygon.d.ts +29 -23
- package/types/phaser/geom/polygon.d.ts.map +1 -1
- package/types/phaser/geom/rectangle.d.ts +137 -132
- package/types/phaser/geom/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/rounded_rectangle.d.ts +12 -12
- package/types/phaser/geom/util/point.d.ts +1 -1
- package/types/phaser/geom/util/point.d.ts.map +1 -1
- package/pnpm-workspace.yaml +0 -4
|
@@ -1,163 +1,168 @@
|
|
|
1
1
|
export class Circle {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @param {number} x -
|
|
5
|
-
* @param {number} y -
|
|
6
|
-
* @param {number} diameter -
|
|
3
|
+
* Creates a new Circle instance.
|
|
4
|
+
* @param {number} x - The x coordinate of the center point (default: 0).
|
|
5
|
+
* @param {number} y - The y coordinate of the center point (default: 0).
|
|
6
|
+
* @param {number} diameter - The diameter of the circle (default: 0).
|
|
7
7
|
*/
|
|
8
8
|
constructor(x?: number, y?: number, diameter?: number);
|
|
9
|
+
/** @type {number} */
|
|
9
10
|
x: number;
|
|
11
|
+
/** @type {number} */
|
|
10
12
|
y: number;
|
|
13
|
+
/** @type {number} */
|
|
11
14
|
_diameter: number;
|
|
15
|
+
/** @type {number} */
|
|
12
16
|
_radius: number;
|
|
17
|
+
/** @type {number} */
|
|
13
18
|
type: number;
|
|
14
19
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @returns {number}
|
|
20
|
+
* Calculates the circumference of this circle.
|
|
21
|
+
* @returns {number} The circumference of this circle.
|
|
17
22
|
*/
|
|
18
23
|
circumference(): number;
|
|
19
24
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @param {Point} output -
|
|
22
|
-
* @returns {Point}
|
|
25
|
+
* Returns a random point within this circle.
|
|
26
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
27
|
+
* @returns {Point} A random point within this circle.
|
|
23
28
|
*/
|
|
24
29
|
random(output?: Point): Point;
|
|
25
30
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @returns {Rectangle}
|
|
31
|
+
* Gets the bounding rectangle of this circle.
|
|
32
|
+
* @returns {Rectangle} The bounding rectangle of this circle.
|
|
28
33
|
*/
|
|
29
34
|
getBounds(): Rectangle;
|
|
30
35
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @param {number} x -
|
|
33
|
-
* @param {number} y -
|
|
34
|
-
* @param {number} diameter -
|
|
35
|
-
* @returns {Circle}
|
|
36
|
+
* Sets the position and size of this circle to new values.
|
|
37
|
+
* @param {number} x - The new x coordinate of the center point.
|
|
38
|
+
* @param {number} y - The new y coordinate of the center point.
|
|
39
|
+
* @param {number} diameter - The new diameter of the circle.
|
|
40
|
+
* @returns {Circle} This circle instance for chaining.
|
|
36
41
|
*/
|
|
37
42
|
setTo(x: number, y: number, diameter: number): Circle;
|
|
38
43
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param {Circle} source -
|
|
41
|
-
* @returns {Circle}
|
|
44
|
+
* Copies the values from another circle to this circle.
|
|
45
|
+
* @param {Circle} source - The circle to copy values from.
|
|
46
|
+
* @returns {Circle} This circle instance for chaining.
|
|
42
47
|
*/
|
|
43
48
|
copyFrom(source: Circle): Circle;
|
|
44
49
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @param {Circle} dest -
|
|
47
|
-
* @returns {Circle}
|
|
50
|
+
* Copies the values of this circle to another circle.
|
|
51
|
+
* @param {Circle} dest - The circle to copy values to.
|
|
52
|
+
* @returns {Circle} The destination circle.
|
|
48
53
|
*/
|
|
49
54
|
copyTo(dest: Circle): Circle;
|
|
50
55
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @param {Circle} dest -
|
|
53
|
-
* @param {boolean} round -
|
|
54
|
-
* @returns {number}
|
|
56
|
+
* Calculates the distance between this circle and another circle.
|
|
57
|
+
* @param {Circle} dest - The other circle to calculate the distance to.
|
|
58
|
+
* @param {boolean} round - Whether to round the result (default: false).
|
|
59
|
+
* @returns {number} The distance between the circles.
|
|
55
60
|
*/
|
|
56
61
|
distance(dest: Circle, round?: boolean): number;
|
|
57
62
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @returns {Circle}
|
|
63
|
+
* Creates a clone of this circle.
|
|
64
|
+
* @returns {Circle} A new circle with the same values as this one.
|
|
60
65
|
*/
|
|
61
66
|
clone(): Circle;
|
|
62
67
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param {number} x -
|
|
65
|
-
* @param {number} y -
|
|
66
|
-
* @returns {boolean}
|
|
68
|
+
* Checks if the specified point is contained within this circle.
|
|
69
|
+
* @param {number} x - The x coordinate of the point to check.
|
|
70
|
+
* @param {number} y - The y coordinate of the point to check.
|
|
71
|
+
* @returns {boolean} True if the point is contained within this circle, false otherwise.
|
|
67
72
|
*/
|
|
68
73
|
contains(x: number, y: number): boolean;
|
|
69
74
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @param {number} angle -
|
|
72
|
-
* @param {boolean} asDegrees -
|
|
73
|
-
* @param {Point} out -
|
|
74
|
-
* @returns {Point}
|
|
75
|
+
* Gets a point at a specific angle on the circumference of this circle.
|
|
76
|
+
* @param {number} angle - The angle in radians (or degrees if asDegrees is true) to get the point for.
|
|
77
|
+
* @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
|
|
78
|
+
* @param {Point} out - The point to store the result in (optional).
|
|
79
|
+
* @returns {Point} A point at the specified angle on the circumference of this circle.
|
|
75
80
|
*/
|
|
76
81
|
circumferencePoint(angle: number, asDegrees: boolean, out: Point): Point;
|
|
77
82
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @param {number} dx -
|
|
80
|
-
* @param {number} dy -
|
|
81
|
-
* @returns {Circle}
|
|
83
|
+
* Offsets the position of this circle by the specified amounts.
|
|
84
|
+
* @param {number} dx - The amount to offset the x coordinate by.
|
|
85
|
+
* @param {number} dy - The amount to offset the y coordinate by.
|
|
86
|
+
* @returns {Circle} This circle instance for chaining.
|
|
82
87
|
*/
|
|
83
88
|
offset(dx: number, dy: number): Circle;
|
|
84
89
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @param {Point} point -
|
|
87
|
-
* @returns {Circle}
|
|
90
|
+
* Offsets the position of this circle by the specified point coordinates.
|
|
91
|
+
* @param {Point} point - The point to offset the circle by.
|
|
92
|
+
* @returns {Circle} This circle instance for chaining.
|
|
88
93
|
*/
|
|
89
94
|
offsetPoint(point: Point): Circle;
|
|
90
95
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @returns {string}
|
|
96
|
+
* Returns a string representation of this circle.
|
|
97
|
+
* @returns {string} A string representation of the circle.
|
|
93
98
|
*/
|
|
94
99
|
toString(): string;
|
|
95
100
|
/**
|
|
96
|
-
*
|
|
101
|
+
* Sets the diameter of this circle.
|
|
97
102
|
*/
|
|
98
103
|
set diameter(value: number);
|
|
99
104
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @returns {number}
|
|
105
|
+
* Gets the diameter of this circle.
|
|
106
|
+
* @returns {number} The diameter of this circle.
|
|
102
107
|
*/
|
|
103
108
|
get diameter(): number;
|
|
104
109
|
/**
|
|
105
|
-
*
|
|
110
|
+
* Sets the radius of this circle.
|
|
106
111
|
*/
|
|
107
112
|
set radius(value: number);
|
|
108
113
|
/**
|
|
109
|
-
*
|
|
110
|
-
* @returns {number}
|
|
114
|
+
* Gets the radius of this circle.
|
|
115
|
+
* @returns {number} The radius of this circle.
|
|
111
116
|
*/
|
|
112
117
|
get radius(): number;
|
|
113
118
|
/**
|
|
114
|
-
*
|
|
119
|
+
* Sets the left coordinate of this circle.
|
|
115
120
|
*/
|
|
116
121
|
set left(value: number);
|
|
117
122
|
/**
|
|
118
|
-
*
|
|
119
|
-
* @returns {number}
|
|
123
|
+
* Gets the left coordinate of this circle.
|
|
124
|
+
* @returns {number} The left coordinate of this circle.
|
|
120
125
|
*/
|
|
121
126
|
get left(): number;
|
|
122
127
|
/**
|
|
123
|
-
*
|
|
128
|
+
* Sets the right coordinate of this circle.
|
|
124
129
|
*/
|
|
125
130
|
set right(value: number);
|
|
126
131
|
/**
|
|
127
|
-
*
|
|
128
|
-
* @returns {number}
|
|
132
|
+
* Gets the right coordinate of this circle.
|
|
133
|
+
* @returns {number} The right coordinate of this circle.
|
|
129
134
|
*/
|
|
130
135
|
get right(): number;
|
|
131
136
|
/**
|
|
132
|
-
*
|
|
137
|
+
* Sets the top coordinate of this circle.
|
|
133
138
|
*/
|
|
134
139
|
set top(value: number);
|
|
135
140
|
/**
|
|
136
|
-
*
|
|
137
|
-
* @returns {number}
|
|
141
|
+
* Gets the top coordinate of this circle.
|
|
142
|
+
* @returns {number} The top coordinate of this circle.
|
|
138
143
|
*/
|
|
139
144
|
get top(): number;
|
|
140
145
|
/**
|
|
141
|
-
*
|
|
146
|
+
* Sets the bottom coordinate of this circle.
|
|
142
147
|
*/
|
|
143
148
|
set bottom(value: number);
|
|
144
149
|
/**
|
|
145
|
-
*
|
|
146
|
-
* @returns {number}
|
|
150
|
+
* Gets the bottom coordinate of this circle.
|
|
151
|
+
* @returns {number} The bottom coordinate of this circle.
|
|
147
152
|
*/
|
|
148
153
|
get bottom(): number;
|
|
149
154
|
/**
|
|
150
|
-
*
|
|
151
|
-
* @returns {number}
|
|
155
|
+
* Gets the area of this circle.
|
|
156
|
+
* @returns {number} The area of this circle.
|
|
152
157
|
*/
|
|
153
158
|
get area(): number;
|
|
154
159
|
/**
|
|
155
|
-
*
|
|
160
|
+
* Sets whether this circle is empty (zero diameter).
|
|
156
161
|
*/
|
|
157
162
|
set empty(value: boolean);
|
|
158
163
|
/**
|
|
159
|
-
*
|
|
160
|
-
* @returns {boolean}
|
|
164
|
+
* Checks if this circle is empty (has zero diameter).
|
|
165
|
+
* @returns {boolean} True if the circle is empty, false otherwise.
|
|
161
166
|
*/
|
|
162
167
|
get empty(): boolean;
|
|
163
168
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/circle.js"],"names":[],"mappings":"AAMA;IACE;;;;;OAKG;IACH,gBAJW,MAAM,MACN,MAAM,aACN,MAAM,
|
|
1
|
+
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/circle.js"],"names":[],"mappings":"AAMA;IACE;;;;;OAKG;IACH,gBAJW,MAAM,MACN,MAAM,aACN,MAAM,EAgBhB;IAbC,qBAAqB;IACrB,GADW,MAAM,CACP;IACV,qBAAqB;IACrB,GADW,MAAM,CACP;IACV,qBAAqB;IACrB,WADW,MAAM,CACQ;IACzB,qBAAqB;IACrB,SADW,MAAM,CACD;IAIhB,qBAAqB;IACrB,MADW,MAAM,CACM;IAGzB;;;OAGG;IACH,iBAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,gBAHW,KAAK,GACH,KAAK,CAYjB;IAED;;;OAGG;IACH,aAFa,SAAS,CAIrB;IAED;;;;;;OAMG;IACH,SALW,MAAM,KACN,MAAM,YACN,MAAM,GACJ,MAAM,CAQlB;IAED;;;;OAIG;IACH,iBAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,MAAM,CAOlB;IAED;;;;;OAKG;IACH,eAJW,MAAM,UACN,OAAO,GACL,MAAM,CAKlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;;;OAKG;IACH,YAJW,MAAM,KACN,MAAM,GACJ,OAAO,CAInB;IAED;;;;;;OAMG;IACH,0BALW,MAAM,aACN,OAAO,OACP,KAAK,GACH,KAAK,CAIjB;IAED;;;;;OAKG;IACH,WAJW,MAAM,MACN,MAAM,GACJ,MAAM,CAMlB;IAED;;;;OAIG;IACH,mBAHW,KAAK,GACH,MAAM,CAIlB;IAED;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAUD;;OAEG;IACH,oBATa,MAAM,EAclB;IAhBD;;;OAGG;IACH,gBAFa,MAAM,CAIlB;IAoBD;;OAEG;IACH,kBATa,MAAM,EAclB;IAhBD;;;OAGG;IACH,cAFa,MAAM,CAIlB;IAoBD;;OAEG;IACH,gBATa,MAAM,EAgBlB;IAlBD;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAsBD;;OAEG;IACH,iBATa,MAAM,EAgBlB;IAlBD;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAsBD;;OAEG;IACH,eATa,MAAM,EAgBlB;IAlBD;;;OAGG;IACH,WAFa,MAAM,CAIlB;IAsBD;;OAEG;IACH,kBATa,MAAM,EAgBlB;IAlBD;;;OAGG;IACH,cAFa,MAAM,CAIlB;IAcD;;;OAGG;IACH,YAFa,MAAM,CAOlB;IAUD;;OAEG;IACH,iBATa,OAAO,EAanB;IAfD;;;OAGG;IACH,aAFa,OAAO,CAInB;CAUF;sBAtTqB,YAAY;0BACR,gBAAgB"}
|
|
@@ -1,59 +1,64 @@
|
|
|
1
1
|
export class Ellipse {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @param {number} x -
|
|
5
|
-
* @param {number} y -
|
|
6
|
-
* @param {number} width -
|
|
7
|
-
* @param {number} height -
|
|
3
|
+
* Creates a new Ellipse instance.
|
|
4
|
+
* @param {number} x - The x coordinate of the center point (default: 0).
|
|
5
|
+
* @param {number} y - The y coordinate of the center point (default: 0).
|
|
6
|
+
* @param {number} width - The width of the ellipse (default: 0).
|
|
7
|
+
* @param {number} height - The height of the ellipse (default: 0).
|
|
8
8
|
*/
|
|
9
9
|
constructor(x?: number, y?: number, width?: number, height?: number);
|
|
10
|
+
/** @type {number} */
|
|
10
11
|
x: number;
|
|
12
|
+
/** @type {number} */
|
|
11
13
|
y: number;
|
|
14
|
+
/** @type {number} */
|
|
12
15
|
width: number;
|
|
16
|
+
/** @type {number} */
|
|
13
17
|
height: number;
|
|
18
|
+
/** @type {number} */
|
|
14
19
|
type: number;
|
|
15
20
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @param {number} x -
|
|
18
|
-
* @param {number} y -
|
|
19
|
-
* @param {number} width -
|
|
20
|
-
* @param {number} height -
|
|
21
|
-
* @returns {Ellipse}
|
|
21
|
+
* Sets the position and size of this ellipse to new values.
|
|
22
|
+
* @param {number} x - The new x coordinate of the center point.
|
|
23
|
+
* @param {number} y - The new y coordinate of the center point.
|
|
24
|
+
* @param {number} width - The new width of the ellipse.
|
|
25
|
+
* @param {number} height - The new height of the ellipse.
|
|
26
|
+
* @returns {Ellipse} This ellipse instance for chaining.
|
|
22
27
|
*/
|
|
23
28
|
setTo(x: number, y: number, width: number, height: number): Ellipse;
|
|
24
29
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @returns {Rectangle}
|
|
30
|
+
* Gets the bounding rectangle of this ellipse.
|
|
31
|
+
* @returns {Rectangle} The bounding rectangle of this ellipse.
|
|
27
32
|
*/
|
|
28
33
|
getBounds(): Rectangle;
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @param {Ellipse} source -
|
|
32
|
-
* @returns {Ellipse}
|
|
35
|
+
* Copies the values from another ellipse to this ellipse.
|
|
36
|
+
* @param {Ellipse} source - The ellipse to copy values from.
|
|
37
|
+
* @returns {Ellipse} This ellipse instance for chaining.
|
|
33
38
|
*/
|
|
34
39
|
copyFrom(source: Ellipse): Ellipse;
|
|
35
40
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @param {Ellipse} dest -
|
|
38
|
-
* @returns {Ellipse}
|
|
41
|
+
* Copies the values of this ellipse to another ellipse.
|
|
42
|
+
* @param {Ellipse} dest - The ellipse to copy values to.
|
|
43
|
+
* @returns {Ellipse} The destination ellipse.
|
|
39
44
|
*/
|
|
40
45
|
copyTo(dest: Ellipse): Ellipse;
|
|
41
46
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @param {number} x -
|
|
44
|
-
* @param {number} y -
|
|
45
|
-
* @returns {boolean}
|
|
47
|
+
* Checks if the specified point is contained within this ellipse.
|
|
48
|
+
* @param {number} x - The x coordinate of the point to check.
|
|
49
|
+
* @param {number} y - The y coordinate of the point to check.
|
|
50
|
+
* @returns {boolean} True if the point is contained within this ellipse, false otherwise.
|
|
46
51
|
*/
|
|
47
52
|
contains(x: number, y: number): boolean;
|
|
48
53
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @param {Point} output -
|
|
51
|
-
* @returns {Point}
|
|
54
|
+
* Returns a random point within this ellipse.
|
|
55
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
56
|
+
* @returns {Point} A random point within this ellipse.
|
|
52
57
|
*/
|
|
53
58
|
random(output?: Point): Point;
|
|
54
59
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @returns {string}
|
|
60
|
+
* Returns a string representation of this ellipse.
|
|
61
|
+
* @returns {string} A string representation of the ellipse.
|
|
57
62
|
*/
|
|
58
63
|
toString(): string;
|
|
59
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/ellipse.js"],"names":[],"mappings":"AAKA;IACE;;;;;;OAMG;IACH,gBALW,MAAM,MACN,MAAM,UACN,MAAM,WACN,MAAM,
|
|
1
|
+
{"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/ellipse.js"],"names":[],"mappings":"AAKA;IACE;;;;;;OAMG;IACH,gBALW,MAAM,MACN,MAAM,UACN,MAAM,WACN,MAAM,EAahB;IAVC,qBAAqB;IACrB,GADW,MAAM,CACP;IACV,qBAAqB;IACrB,GADW,MAAM,CACP;IACV,qBAAqB;IACrB,OADW,MAAM,CACC;IAClB,qBAAqB;IACrB,QADW,MAAM,CACG;IACpB,qBAAqB;IACrB,MADW,MAAM,CACO;IAG1B;;;;;;;OAOG;IACH,SANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GACJ,OAAO,CAQnB;IAED;;;OAGG;IACH,aAFa,SAAS,CAIrB;IAED;;;;OAIG;IACH,iBAHW,OAAO,GACL,OAAO,CAInB;IAED;;;;OAIG;IACH,aAHW,OAAO,GACL,OAAO,CAQnB;IAED;;;;;OAKG;IACH,YAJW,MAAM,KACN,MAAM,GACJ,OAAO,CAInB;IAED;;;;OAIG;IACH,gBAHW,KAAK,GACH,KAAK,CAWjB;IAED;;;OAGG;IACH,YAFa,MAAM,CAIlB;CACF;0BAvGyB,gBAAgB;sBADpB,YAAY"}
|
|
@@ -1,188 +1,191 @@
|
|
|
1
1
|
export class Line {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @param {number} x1 -
|
|
5
|
-
* @param {number} y1 -
|
|
6
|
-
* @param {number} x2 -
|
|
7
|
-
* @param {number} y2 -
|
|
3
|
+
* Creates a new Line instance.
|
|
4
|
+
* @param {number} x1 - The x coordinate of the start point (default: 0).
|
|
5
|
+
* @param {number} y1 - The y coordinate of the start point (default: 0).
|
|
6
|
+
* @param {number} x2 - The x coordinate of the end point (default: 0).
|
|
7
|
+
* @param {number} y2 - The y coordinate of the end point (default: 0).
|
|
8
8
|
*/
|
|
9
9
|
constructor(x1?: number, y1?: number, x2?: number, y2?: number);
|
|
10
|
+
/** @type {Point} */
|
|
10
11
|
start: Point;
|
|
12
|
+
/** @type {Point} */
|
|
11
13
|
end: Point;
|
|
14
|
+
/** @type {number} */
|
|
12
15
|
type: number;
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
15
|
-
* @param {number} x1 -
|
|
16
|
-
* @param {number} y1 -
|
|
17
|
-
* @param {number} x2 -
|
|
18
|
-
* @param {number} y2 -
|
|
19
|
-
* @returns {Line}
|
|
17
|
+
* Sets the coordinates of this line to new values.
|
|
18
|
+
* @param {number} x1 - The new x coordinate of the start point.
|
|
19
|
+
* @param {number} y1 - The new y coordinate of the start point.
|
|
20
|
+
* @param {number} x2 - The new x coordinate of the end point.
|
|
21
|
+
* @param {number} y2 - The new y coordinate of the end point.
|
|
22
|
+
* @returns {Line} This line instance for chaining.
|
|
20
23
|
*/
|
|
21
24
|
setTo(x1: number, y1: number, x2: number, y2: number): Line;
|
|
22
25
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param {object} startSprite -
|
|
25
|
-
* @param {object} endSprite -
|
|
26
|
-
* @param {boolean} useCenter -
|
|
27
|
-
* @returns {Line}
|
|
26
|
+
* Sets the coordinates of this line to match the positions of two sprites.
|
|
27
|
+
* @param {object} startSprite - The starting sprite to get the position from.
|
|
28
|
+
* @param {object} endSprite - The ending sprite to get the position from.
|
|
29
|
+
* @param {boolean} useCenter - Whether to use the center of the sprites (default: false).
|
|
30
|
+
* @returns {Line} This line instance for chaining.
|
|
28
31
|
*/
|
|
29
32
|
fromSprite(startSprite: object, endSprite: object, useCenter?: boolean): Line;
|
|
30
33
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @param {number} x -
|
|
33
|
-
* @param {number} y -
|
|
34
|
-
* @param {number} angle -
|
|
35
|
-
* @param {number} length -
|
|
36
|
-
* @returns {Line}
|
|
34
|
+
* Sets the coordinates of this line to a point at a specific angle and distance.
|
|
35
|
+
* @param {number} x - The x coordinate of the starting point.
|
|
36
|
+
* @param {number} y - The y coordinate of the starting point.
|
|
37
|
+
* @param {number} angle - The angle in radians to set the line at.
|
|
38
|
+
* @param {number} length - The length of the line.
|
|
39
|
+
* @returns {Line} This line instance for chaining.
|
|
37
40
|
*/
|
|
38
41
|
fromAngle(x: number, y: number, angle: number, length: number): Line;
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @param {number} angle -
|
|
42
|
-
* @param {boolean} asDegrees -
|
|
43
|
-
* @returns {Line}
|
|
43
|
+
* Rotates this line around its center point by the specified angle.
|
|
44
|
+
* @param {number} angle - The angle in radians (or degrees if asDegrees is true) to rotate by.
|
|
45
|
+
* @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
|
|
46
|
+
* @returns {Line} This line instance for chaining.
|
|
44
47
|
*/
|
|
45
48
|
rotate(angle: number, asDegrees?: boolean): Line;
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @param {number} x -
|
|
49
|
-
* @param {number} y -
|
|
50
|
-
* @param {number} angle -
|
|
51
|
-
* @param {boolean} asDegrees -
|
|
52
|
-
* @returns {Line}
|
|
50
|
+
* Rotates this line around a specific point by the specified angle.
|
|
51
|
+
* @param {number} x - The x coordinate of the center point to rotate around.
|
|
52
|
+
* @param {number} y - The y coordinate of the center point to rotate around.
|
|
53
|
+
* @param {number} angle - The angle in radians (or degrees if asDegrees is true) to rotate by.
|
|
54
|
+
* @param {boolean} asDegrees - Whether the angle is provided in degrees (default: false).
|
|
55
|
+
* @returns {Line} This line instance for chaining.
|
|
53
56
|
*/
|
|
54
57
|
rotateAround(x: number, y: number, angle: number, asDegrees?: boolean): Line;
|
|
55
58
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @param {Line} line -
|
|
58
|
-
* @param {boolean} asSegment -
|
|
59
|
-
* @param {Point} result -
|
|
60
|
-
* @returns {Point}
|
|
59
|
+
* Checks if this line intersects with another line.
|
|
60
|
+
* @param {Line} line - The other line to check for intersection with.
|
|
61
|
+
* @param {boolean} asSegment - Whether to treat the lines as segments (default: false).
|
|
62
|
+
* @param {Point} result - The point to store the intersection in (optional).
|
|
63
|
+
* @returns {Point} The intersection point, or null if no intersection occurs.
|
|
61
64
|
*/
|
|
62
65
|
intersects(line: Line, asSegment: boolean, result: Point): Point;
|
|
63
66
|
/**
|
|
64
|
-
*
|
|
65
|
-
* @param {Line} line -
|
|
66
|
-
* @returns {number}
|
|
67
|
+
* Calculates the reflection of this line off another line.
|
|
68
|
+
* @param {Line} line - The line to reflect off.
|
|
69
|
+
* @returns {number} The angle of reflection in radians.
|
|
67
70
|
*/
|
|
68
71
|
reflect(line: Line): number;
|
|
69
72
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @param {Point} output -
|
|
72
|
-
* @returns {Point}
|
|
73
|
+
* Returns the midpoint of this line.
|
|
74
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
75
|
+
* @returns {Point} The midpoint of this line.
|
|
73
76
|
*/
|
|
74
77
|
midPoint(output?: Point): Point;
|
|
75
78
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @param {number} x -
|
|
78
|
-
* @param {number} y -
|
|
79
|
+
* Centers this line on the specified point.
|
|
80
|
+
* @param {number} x - The x coordinate to center the line on.
|
|
81
|
+
* @param {number} y - The y coordinate to center the line on.
|
|
79
82
|
*/
|
|
80
83
|
centerOn(x: number, y: number): void;
|
|
81
84
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @param {number} x -
|
|
84
|
-
* @param {number} y -
|
|
85
|
-
* @returns {boolean}
|
|
85
|
+
* Checks if the specified point lies on this line (not necessarily on the segment).
|
|
86
|
+
* @param {number} x - The x coordinate of the point to check.
|
|
87
|
+
* @param {number} y - The y coordinate of the point to check.
|
|
88
|
+
* @returns {boolean} True if the point lies on this line, false otherwise.
|
|
86
89
|
*/
|
|
87
90
|
pointOnLine(x: number, y: number): boolean;
|
|
88
91
|
/**
|
|
89
|
-
*
|
|
90
|
-
* @param {number} x -
|
|
91
|
-
* @param {number} y -
|
|
92
|
-
* @returns {boolean}
|
|
92
|
+
* Checks if the specified point lies on this line segment.
|
|
93
|
+
* @param {number} x - The x coordinate of the point to check.
|
|
94
|
+
* @param {number} y - The y coordinate of the point to check.
|
|
95
|
+
* @returns {boolean} True if the point lies on this line segment, false otherwise.
|
|
93
96
|
*/
|
|
94
97
|
pointOnSegment(x: number, y: number): boolean;
|
|
95
98
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @param {Point} output -
|
|
98
|
-
* @returns {Point}
|
|
99
|
+
* Returns a random point on this line.
|
|
100
|
+
* @param {Point} output - The point to store the result in (optional).
|
|
101
|
+
* @returns {Point} A random point on this line.
|
|
99
102
|
*/
|
|
100
103
|
random(output?: Point): Point;
|
|
101
104
|
/**
|
|
102
|
-
*
|
|
103
|
-
* @param {number} stepRate -
|
|
104
|
-
* @param {number[][]} results -
|
|
105
|
-
* @returns {number[][]}
|
|
105
|
+
* Gets coordinates of points along this line at regular intervals.
|
|
106
|
+
* @param {number} stepRate - The interval between points (default: 1).
|
|
107
|
+
* @param {number[][]} results - The array to store the results in (optional).
|
|
108
|
+
* @returns {number[][]} An array of coordinate pairs representing points along this line.
|
|
106
109
|
*/
|
|
107
110
|
coordinatesOnLine(stepRate?: number, results?: number[][]): number[][];
|
|
108
111
|
/**
|
|
109
|
-
*
|
|
110
|
-
* @returns {Line}
|
|
112
|
+
* Creates a clone of this line.
|
|
113
|
+
* @returns {Line} A new line with the same values as this one.
|
|
111
114
|
*/
|
|
112
115
|
clone(): Line;
|
|
113
116
|
/**
|
|
114
|
-
*
|
|
115
|
-
* @returns {number}
|
|
117
|
+
* Gets the length of this line.
|
|
118
|
+
* @returns {number} The length of this line.
|
|
116
119
|
*/
|
|
117
120
|
get length(): number;
|
|
118
121
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @returns {number}
|
|
122
|
+
* Gets the angle of this line in radians.
|
|
123
|
+
* @returns {number} The angle of this line in radians.
|
|
121
124
|
*/
|
|
122
125
|
get angle(): number;
|
|
123
126
|
/**
|
|
124
|
-
*
|
|
125
|
-
* @returns {number}
|
|
127
|
+
* Gets the slope of this line.
|
|
128
|
+
* @returns {number} The slope of this line.
|
|
126
129
|
*/
|
|
127
130
|
get slope(): number;
|
|
128
131
|
/**
|
|
129
|
-
*
|
|
130
|
-
* @returns {number}
|
|
132
|
+
* Gets the perpendicular slope of this line.
|
|
133
|
+
* @returns {number} The perpendicular slope of this line.
|
|
131
134
|
*/
|
|
132
135
|
get perpSlope(): number;
|
|
133
136
|
/**
|
|
134
|
-
*
|
|
135
|
-
* @returns {number}
|
|
137
|
+
* Gets the x coordinate of the leftmost point on this line.
|
|
138
|
+
* @returns {number} The x coordinate of the leftmost point on this line.
|
|
136
139
|
*/
|
|
137
140
|
get x(): number;
|
|
138
141
|
/**
|
|
139
|
-
*
|
|
140
|
-
* @returns {number}
|
|
142
|
+
* Gets the y coordinate of the topmost point on this line.
|
|
143
|
+
* @returns {number} The y coordinate of the topmost point on this line.
|
|
141
144
|
*/
|
|
142
145
|
get y(): number;
|
|
143
146
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @returns {number}
|
|
147
|
+
* Gets the x coordinate of the leftmost point on this line.
|
|
148
|
+
* @returns {number} The x coordinate of the leftmost point on this line.
|
|
146
149
|
*/
|
|
147
150
|
get left(): number;
|
|
148
151
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @returns {number}
|
|
152
|
+
* Gets the x coordinate of the rightmost point on this line.
|
|
153
|
+
* @returns {number} The x coordinate of the rightmost point on this line.
|
|
151
154
|
*/
|
|
152
155
|
get right(): number;
|
|
153
156
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @returns {number}
|
|
157
|
+
* Gets the y coordinate of the topmost point on this line.
|
|
158
|
+
* @returns {number} The y coordinate of the topmost point on this line.
|
|
156
159
|
*/
|
|
157
160
|
get top(): number;
|
|
158
161
|
/**
|
|
159
|
-
*
|
|
160
|
-
* @returns {number}
|
|
162
|
+
* Gets the y coordinate of the bottommost point on this line.
|
|
163
|
+
* @returns {number} The y coordinate of the bottommost point on this line.
|
|
161
164
|
*/
|
|
162
165
|
get bottom(): number;
|
|
163
166
|
/**
|
|
164
|
-
*
|
|
165
|
-
* @returns {number}
|
|
167
|
+
* Gets the width of this line (absolute difference between x coordinates).
|
|
168
|
+
* @returns {number} The width of this line.
|
|
166
169
|
*/
|
|
167
170
|
get width(): number;
|
|
168
171
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @returns {number}
|
|
172
|
+
* Gets the height of this line (absolute difference between y coordinates).
|
|
173
|
+
* @returns {number} The height of this line.
|
|
171
174
|
*/
|
|
172
175
|
get height(): number;
|
|
173
176
|
/**
|
|
174
|
-
*
|
|
175
|
-
* @returns {number}
|
|
177
|
+
* Gets the normal vector x component of this line (perpendicular to the line).
|
|
178
|
+
* @returns {number} The normal vector x component of this line.
|
|
176
179
|
*/
|
|
177
180
|
get normalX(): number;
|
|
178
181
|
/**
|
|
179
|
-
*
|
|
180
|
-
* @returns {number}
|
|
182
|
+
* Gets the normal vector y component of this line (perpendicular to the line).
|
|
183
|
+
* @returns {number} The normal vector y component of this line.
|
|
181
184
|
*/
|
|
182
185
|
get normalY(): number;
|
|
183
186
|
/**
|
|
184
|
-
*
|
|
185
|
-
* @returns {number}
|
|
187
|
+
* Gets the angle of the normal vector of this line in radians.
|
|
188
|
+
* @returns {number} The angle of the normal vector of this line in radians.
|
|
186
189
|
*/
|
|
187
190
|
get normalAngle(): number;
|
|
188
191
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/line.js"],"names":[],"mappings":"AAKA;IACE;;;;;;OAMG;IACH,iBALW,MAAM,OACN,MAAM,OACN,MAAM,OACN,MAAM,
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../src/phaser/geom/line.js"],"names":[],"mappings":"AAKA;IACE;;;;;;OAMG;IACH,iBALW,MAAM,OACN,MAAM,OACN,MAAM,OACN,MAAM,EAShB;IANC,oBAAoB;IACpB,OADW,KAAK,CACc;IAC9B,oBAAoB;IACpB,KADW,KAAK,CACY;IAC5B,qBAAqB;IACrB,MADW,MAAM,CACI;IAGvB;;;;;;;OAOG;IACH,UANW,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,GACJ,IAAI,CAMhB;IAED;;;;;;OAMG;IACH,wBALW,MAAM,aACN,MAAM,cACN,OAAO,GACL,IAAI,CAOhB;IAED;;;;;;;OAOG;IACH,aANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,GACJ,IAAI,CAMhB;IAED;;;;;OAKG;IACH,cAJW,MAAM,cACN,OAAO,GACL,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,gBANW,MAAM,KACN,MAAM,SACN,MAAM,cACN,OAAO,GACL,IAAI,CAMhB;IAED;;;;;;OAMG;IACH,iBALW,IAAI,aACJ,OAAO,UACP,KAAK,GACH,KAAK,CAIjB;IAED;;;;OAIG;IACH,cAHW,IAAI,GACF,MAAM,CAIlB;IAED;;;;OAIG;IACH,kBAHW,KAAK,GACH,KAAK,CAOjB;IAED;;;;OAIG;IACH,YAHW,MAAM,KACN,MAAM,QAShB;IAED;;;;;OAKG;IACH,eAJW,MAAM,KACN,MAAM,GACJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,KACN,MAAM,GACJ,OAAO,CAQnB;IAED;;;;OAIG;IACH,gBAHW,KAAK,GACH,KAAK,CAQjB;IAED;;;;;OAKG;IACH,6BAJW,MAAM,YACN,MAAM,EAAE,EAAE,GACR,MAAM,EAAE,EAAE,CA8BtB;IAED;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,cAFa,MAAM,CAOlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,iBAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,SAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,YAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,WAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,aAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,cAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,eAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,eAFa,MAAM,CAIlB;IAED;;;OAGG;IACH,mBAFa,MAAM,CAIlB;CACF;sBArVqB,YAAY"}
|