Commit graph

160 commits

Author SHA1 Message Date
Daniel
9701d68af2 Fill all description tags for Phaser.Math.FloatBetween 2018-04-22 16:59:25 +10:00
Daniel
d7c5d8951a Fill all description tags for Phaser.Math.Factorial 2018-04-22 16:53:35 +10:00
Richard Davey
c37c6365d3 The RandomDataGenerator class is now exposed under Phaser.Math should you wish to instantiate it yourself. Fix #3576 2018-04-16 16:07:52 +01:00
Richard Davey
18585de81d Lots of jsdoc fixes 2018-04-16 14:43:24 +01:00
Richard Davey
34b236df41 Vector2.setTo is a method alias for Vector2.set allowing it to be used inter-changeably with Geom.Point. 2018-04-05 11:24:56 +01:00
Evan Cobb
6d7b28db04
Fleshing out docs 2018-04-02 11:03:23 -05:00
Evan Cobb
7153548c36
Update LinearInterpolation.js 2018-04-02 10:54:46 -05:00
orblazer
ed1f2a7011 Fix wrong types 2018-03-22 13:51:30 +01:00
orblazer
11845f9d6d Fix "object" types on Physics and Math 2018-03-21 14:15:25 +01:00
orblazer
c5d4c0a9d2 Fix Vector2 types 2018-03-20 23:51:54 +01:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
orblazer
7e05b333a0 Fix multiple types on Math 2018-03-20 16:06:30 +01:00
orblazer
679253f591 Update JSDoc on Math 2018-03-19 13:06:46 +01:00
Richard Davey
4fe6a25117 Added jsdoc data types 2018-03-19 11:25:46 +00:00
samme
9234fd1d4f Fix property name conflict in Phaser.Math.RandomDataGenerator#sign
Fixes #3323
2018-03-04 22:09:29 -08:00
Richard Davey
ae1c91cf6a eslint fixes 2018-03-05 01:40:11 +00:00
Richard Davey
375db253f2 Quadratic Curve updates
* Quadratic Bezier Interpolation has been added to the Math.Interpolation functions
* A new Quadratic Bezier Curve class has been added, expanding the available Curve types
* Path.quadraticBezierTo allows you to add a Quadratic Bezier Curve into your Path.
2018-03-05 01:15:18 +00:00
Richard Davey
af8f8739ba
Merge pull request #3307 from RiCoTeRoX/curves-quadratic
Add quadraticBezier to API
2018-03-05 00:20:43 +00:00
danny
af3e47ce4b Fix on P0 vector 2018-03-02 20:16:11 -03:00
danny
db6039bf4f Add quadraticBezier to API 2018-03-02 17:42:12 -03:00
migiyubi
2f239de66a
Correct JSDoc 2018-03-02 19:35:01 +09:00
migiyubi
fc1181970b
Fix RandomDataGenerator's randomness 2018-03-01 19:57:16 +09:00
Richard Davey
26f0578261 jsdoc fixes 2018-02-22 01:07:30 +00:00
Richard Davey
3c65121cb3 eslint fixes 2018-02-16 19:17:49 +00:00
Richard Davey
d23688c3e4 Added eslint fixes and overrides 2018-02-16 18:44:07 +00:00
Richard Davey
4a3f4293d4 Fuzzy.Floor had an incorrect method signature. 2018-02-16 18:43:52 +00:00
Richard Davey
86f00eeb52 eslint fixes 2018-02-16 18:17:51 +00:00
Richard Davey
4e6df03512 Updated semver 2018-02-15 14:31:15 +00:00
Richard Davey
11aff17e0d Added Vector2.ZERO const for a handy zero vec2 reference. 2018-02-15 01:49:11 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
b0529c79f8 Moved un-used class 2018-02-10 02:20:36 +00:00
Richard Davey
ea52b2e12c Updated jsdocs 2018-02-07 21:58:23 +00:00
Richard Davey
40689d1e35 Updated jsdocs. 2018-02-07 15:27:21 +00:00
Richard Davey
203a0ee98c Added jsdocs 2018-01-31 17:48:30 +00:00
Richard Davey
2a86400a28 Added in jsdocs 2018-01-31 13:54:44 +00:00
Richard Davey
a6dbacbc20 Added jsdocs. 2018-01-26 12:43:51 +00:00
Richard Davey
3ba739756c Added jsdocs. 2018-01-26 06:19:27 +00:00
Richard Davey
8d97b1a46a Removed the MinMax classes. 2018-01-26 06:19:19 +00:00
yp
242471beb9 Renamed no longer existing Vector2/3 .sub and .len to .subtract and .length where still used 2018-01-12 02:18:36 +02: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
346fbc2cbd Blitter + Bob now rendering and updating fully. 2016-11-15 01:57:42 +00:00
photonstorm
c836d4bfbd PIXI.PI_2, PIXI.RAD_TO_DEG and PIXI.DEG_TO_RAD have all been removed, as they are no longer used internally, and are all available under Phaser.Math.
PIXI.VERSION has been removed, as it's no longer relevant and misleading.
2016-09-28 16:57:08 +01:00
photonstorm
eda4961c06 Math.getNextPowerOfTwo will get the next power of two for the given value.
Math.isPowerOfTwo will return a boolean if the given width and height are a power of two.
2016-09-28 13:48:08 +01:00
Richard Davey
a16e6e92ff Tidying up the formatting #2760 2016-09-26 21:02:36 +01:00
James Lowrey
ff75721507 minor docs fixes from last commit 2016-09-14 18:31:21 -07:00
James Lowrey
a6302cdd9a fixed between() docs and updated it to accept negative numbers, default values, and auto-orders min/max parameters if they're input wrong. Added a random() function that does the same but returns floats instead of integers 2016-09-14 18:25:58 -07:00
Richard Davey
a532f7b2c4 Optimised Math.getShortestAngle. 2016-07-29 03:58:25 +01:00
Richard Davey
688752c5de Math.getShortestAngle will return the shortest angle between the two given angles. Angles are in the range -180 to 180, which is what Sprite.angle uses. So you can happily feed this method two sprite angles, and get the shortest angle back between them (#2494) 2016-07-29 03:39:51 +01:00
Richard Davey
19e609185a Math.rotateToAngle takes two angles (in radians), and an interpolation value, and returns a new angle, based on the shortest rotational distance between the two. 2016-07-25 00:39:38 +01:00