Richard Davey
8ecab7a1a1
JSDocs fix
2019-06-25 16:56:56 +01:00
ldd
4cd8787212
Fix some JSDoc descriptions
2019-06-17 16:03:22 -04:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
florianvazelle
669764a1be
Fix GetLineToCircle
2019-04-23 21:29:10 +02:00
florianvazelle
97b611356b
Fix result when y0 === y1
2019-04-23 21:27:55 +02:00
florianvazelle
21f4ec44d8
Final Update
2019-04-09 10:52:35 +02:00
florianvazelle
0c59c83f6b
Create new functions to get intersections
2019-03-07 10:32:29 +01:00
florianvazelle
1b59cedcfe
Add out argument in intersect functions
2019-03-07 10:32:29 +01:00
Richard Davey
56dfdb7a74
More jsdoc global fixes
2019-02-12 12:14:26 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
6a361ba8ea
Line.Extend
is a new static function that allows you extend the start and/or end points of a Line by the given amounts.
2019-01-05 00:38:20 +00:00
Richard Davey
a40b6056f5
Added jsdocs
2018-12-20 12:12:20 +00:00
Richard Davey
27c1426856
Updated earcut from 2.1.1 to 2.1.4.
2018-12-10 16:35:11 +00:00
Richard Davey
2780babe10
Final Doc Jam merge
2018-12-03 15:16:23 +00:00
Richard Davey
052da6e40c
lint fix
2018-11-27 14:04:19 +00:00
Richard Davey
91e4a91c5a
Added GetNearestPoint and GetShortestDistance methods
2018-11-27 00:42:37 +00:00
Richard Davey
2c78c22112
Geom.Intersects.PointToLine
has a new optional argument lineThickness
(which defaults to 1). This allows you to determine if the point intersects a line of a given thickness, where the line-ends are circular (not square)
2018-11-26 23:28:07 +00:00
Richard Davey
956a0913b8
Added new jsdocs
2018-10-22 12:12:31 +01:00
Richard Davey
07bb619c5e
Added jsdocs
2018-10-19 16:14:51 +01:00
Richard Davey
4c4421c47f
Docjam merge
2018-10-19 12:32:43 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
c2f78fe025
Determines if the two objects (either Rectangles or Rectangle-like) have the same width and height values under strict equality.
2018-10-08 17:02:27 +01:00
Richard Davey
e297b3272e
Added hundreds of new jsdoc descriptions
2018-10-01 11:35:01 +01:00
Richard Davey
38cacfd9f7
Added new jsdocs
2018-09-28 16:37:55 +01:00
Richard Davey
82ddc031c7
Added new batch of jsdocs
2018-09-27 15:29:32 +01:00
Richard Davey
684838aabe
Polygon.setTo
can now take a string of space separated numbers when creating the polygon data, i.e.: '40 0 40 20 100 20 100 80 40 80 40 100 0 50'
. This update also impacts the Polygon Shape object, which can now also take this format as well.
2018-09-26 11:01:48 +01:00
Richard Davey
89b9f42f3e
Adding jsdocs
2018-09-24 23:20:43 +01:00
Richard Davey
b54de56c85
Added Polygon.Smooth and exposed Polygon.Reverse
2018-09-06 00:16:56 +01:00
Richard Davey
2c4f0d0d68
Added missing jsdocs for #3996
2018-09-01 10:19:38 +01:00
iamchristopher
0a96bf356b
Added Polygon.GetPoints
2018-08-31 20:30:36 -04:00
iamchristopher
a1335d3cc0
Added Polygon.Perimeter
2018-08-31 20:21:34 -04:00
Richard Davey
f195a09530
Rectangle.Intersection
will take two Rectangle objects and return the area of intersection between them. If there is no intersection, an empty Rectangle is returned.
2018-07-05 23:54:51 +01:00
Michael Hadley
bf995c7000
Line#getPointB documentation typo fix: "start" is used where "end" was intended
2018-06-26 20:30:01 -05:00
Richard Davey
7aa46657c2
Tidying up jsdocs and changing float to number
2018-06-26 23:19:14 +01:00
Chris Andrew
734c0115f9
Documented Geom CopyFrom functions and some Point functions.
...
Documented one remaining Ellipse ContainsRect parameter.
2018-06-21 18:42:40 +01:00
Chris Andrew
c2bfc52987
Documented the majority of the Geom Line functions.
2018-06-21 18:13:56 +01:00
Chris Andrew
dad6b78c9b
Documented almost all of Math.Quaternion. Fixed lint error in RandomOutside.
2018-05-31 15:17:59 +01:00
Richard Davey
20e21ff5ac
Rectangle.RandomOutside is a new function that takes two Rectangles, outer
and inner
, and returns a random point that falls within the outer rectangle but is always outside of the inner rectangle.
2018-05-31 14:07:39 +01:00
Richard Davey
ef136f684d
Polygon.setTo would fail if given an array of arrays as a list of points. Fix #3619
2018-04-26 15:55:27 +01:00
Daniel
24afeded9b
Add full stops at end of descriptions
2018-04-19 21:59:27 +10:00
Daniel
58964da286
Filled description tags for constructor, x1, x2, y1, y2, getPoint return statement, getRandomPoint and setTo methods
2018-04-19 16:33:14 +10:00
Daniel
29799f36d0
All description tags filled
2018-04-19 16:27:32 +10:00
Daniel
000fd9fd96
Completed all description tags
2018-04-19 16:18:48 +10:00
Richard Davey
9eeef7e33e
lint
2018-04-11 13:17:16 +01:00
Richard Davey
ffd1d218e6
Rectangle.Union will now cache all vars internally so you can use one of the input rectangles as the output rectangle without corrupting it.
2018-04-11 12:44:37 +01:00
Tomas Heinsohn Huala
8a2c5792f4
Line.getPointA&B fix
2018-04-05 12:00:42 +02:00
Richard Davey
15c4334dc7
jsdoc fixes
2018-03-28 14:11:46 +01:00
orblazer
e9e16a7b10
Add generic types on Geom
2018-03-27 15:27:08 +02:00
orblazer
8a9223811f
Fix multiple types on Geom
2018-03-20 16:01:08 +01:00
orblazer
41d7c4b715
Add callbacks on Input and Geom
2018-03-19 22:12:11 +01:00
Richard Davey
15579d7350
Fixed jsdocs
2018-03-19 17:01:53 +00:00
Richard Davey
968dc05eae
Triangle.getLineA/B/C now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one.
2018-03-19 16:51:39 +00:00
Richard Davey
4704745ac6
Optional vec2.
2018-03-19 16:47:43 +00:00
Richard Davey
917dc8f8be
Rectangle.getLineA/B/C/D now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one.
2018-03-19 16:47:34 +00:00
Richard Davey
034161bd66
Line.getPointA and Line.getPointB now return Vector2 instances instead of un-typed objects.
2018-03-19 16:34:22 +00:00
orblazer
0e06dcf3a1
Update JSDoc on Geom
2018-03-19 13:05:23 +01:00
Richard Davey
a223b35ccf
Rectangle.top wouldn't reset the y
position if the value given never exceed the Rectangles bottom. Fix #3290 (thanks @chancezeus)
2018-02-28 21:25:55 +00:00
Richard Davey
86f00eeb52
eslint fixes
2018-02-16 18:17:51 +00:00
Richard Davey
d578e89828
Moved Mesh out of core and into its own Graphics extension.
2018-02-12 16:59:27 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
ebe2f0758a
Removed incorrect namespace.
2018-02-07 16:16:25 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
99913b9da4
More jsdoc updates
2018-02-01 05:48:56 +00:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +00:00
Richard Davey
d1c1074979
Added jsdocs.
2018-01-26 13:14:41 +00:00
Richard Davey
9988e4eb5b
Removed un-needed files and moved plugins around.
2018-01-26 05:21:45 +00:00
Richard Davey
29fde6868a
Added jsdocs.
2018-01-26 04:53:16 +00:00
Richard Davey
3488ad6a7d
Added jsdocs.
2018-01-26 04:18:31 +00:00
Antriel
df7bc2e841
Added missing require for Point.
2018-01-19 14:20:45 +01:00
Richard Davey
d46662cd46
Swapped to using Number.MAX_VALUE
so repeat -1 now works properly in IE11 and below.
2018-01-18 14:59:32 +00:00
Richard Davey
31882e5b48
Method returns array of objects instead of array of arrays
2018-01-18 01:03:15 +00:00
Richard Davey
9cdd359327
Constructors no longer call setTo
and getPointAB
return object properties updated to x/y
2018-01-18 01:02:51 +00:00
Antriel
ca24bce499
Few bug fixes for Ellipse methods.
2018-01-17 11:43:34 +01:00
Antriel
be39bd4260
Fixed rectangle/Union.
2018-01-16 11:04:14 +01:00
Antriel
44a2919774
Fixed rectangle/GetCenter.
2018-01-16 09:22:51 +01:00
Antriel
e342480ca4
Fixed rectangle/FitOutside.
2018-01-16 07:38:41 +01:00
Antriel
c11920ab1b
Fixed rectangle/FitInside.
2018-01-15 13:38:14 +01:00
Hal Helms
4fd10f437c
Fix geom/point/Normalize.js
2018-01-09 21:58:13 -08:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00
Richard Davey
0d90f75b5f
Splitting the dev branch up into versions.
2016-11-22 01:36:56 +00:00
Richard Davey
d0eab7a4e7
Added Ellipse.circumferencePoint
2016-11-10 03:00:41 +00:00
Richard Davey
5b4280d694
Removed the matrix.
2016-10-07 03:34:42 +01:00
Richard Davey
35fd29a45a
Removed Pixi globals, and moved constructors above the prototype.
2016-10-07 03:32:37 +01:00
Richard Davey
3fab1ce385
Working through the Pixi globals and removing them.
2016-10-07 03:21:39 +01:00
Richard Davey
6ce28658f6
PIXI.Float32Array, PIXI.Uint16Array, PIXI.Uint32Array and PIXI.ArrayBuffer have all been removed, and replaced with their own proper native versions. The polyfill now captures any instances where the browser needs to fall back to an Array instead.
2016-09-28 19:02:59 +01:00
Richard Davey
85fc05ec0b
Merge pull request #2729 from samme/line-fromSprite-center
...
Use centerX, centerY in Phaser.Line#fromSprite
2016-09-07 23:16:01 +01:00
samme
f6cdcc3878
Use centerX, centerY in Phaser.Line#fromSprite
2016-08-29 12:08:31 -07:00
photonstorm
ad0e4aca2e
Large batch of jshint fixes.
2016-08-25 13:03:41 +01:00
Richard Davey
8139d484a3
Merge pull request #2649 from boniatillo-com/boniatillo-com-patch-jsdoc-intersectsRectangle
...
jsdoc fix: complete the Phaser.Line.intersectsRectangle @method tag
2016-07-20 12:10:47 +01:00
Boniatillo.com
a465a0e8c7
jsdoc fix: complete the Phaser.Line.intersectsRectangle @method tag
...
complete the @method tag of Phaser.Line.intersectsRectangle with the class prefix.
2016-07-19 08:51:51 -04:00
Richard Davey
776c148a93
Fixed jshint errors.
2016-07-16 08:04:56 +01:00
Richard Davey
a01f59d82d
Added Path Manager Plugin.
2016-07-13 03:08:03 +01:00
photonstorm
b24de1e561
Polygon.contains would only work with non-flattened Polygon objects. It now works with both flat and non-flat Polygons.
...
Graphics objects enabled for input would fail to do anything if a Phaser Polygon was given to the Graphics object (which it was in nearly all cases), as it wouldn't detect input correctly with flattened polygons (thanks @symbiane #2591 )
2016-06-27 14:51:25 +01:00
photonstorm
4da3b15ae2
Renamed alignTo to alignIn, and added the new method alignTo, to allow for Sprite to Sprite alignment. Updated all of the Bounds and TS defs.
2016-06-16 17:01:51 +01:00
Richard Davey
e659083818
Fixed jshint error.
2016-06-16 02:51:44 +01:00
Richard Davey
d67e902760
Rectangle.getPoint is a new method that returns a point based on the given location constant, such as Phaser.BOTTOM_LEFT
. It returns the same result as calling Rectangle.bottomLeft
(etc) but unlike those getters you are able to provide your own Point object.
2016-06-15 23:39:15 +01:00
photonstorm
6383f6b1fb
Updated docs.
2016-06-14 15:29:38 +01:00
photonstorm
ad3641830d
Phaser.Matrix if passed a 0 value would consider it falsy, and replace it with the default by mistake. It now checks if the arguments are undefined
or null
and only then sets the defaults (thanks mmcs)
2016-06-14 12:18:23 +01:00
fillmoreb
3f5de71add
Fixe Phaser.Rectangle.aabb()
...
Number.MIN_VALUE does not return the most negative number, but rather the smallest representable number above 0. As a result, Phaser.Rectangle.aabb() did not work correctly when the points had negative values.
2016-06-08 16:14:30 -06:00
gotenxds
2c752a25c2
Deleted whitespace.
2016-05-27 15:55:46 +03:00