Commit graph

67 commits

Author SHA1 Message Date
Richard Davey
08a2c1f544 Vector2.setToPolar implemented. 2017-11-09 15:32:43 +00:00
Richard Davey
48b0c6c3ea Removed old files 2017-10-27 21:19:21 +01:00
Richard Davey
5cb8f98619 Made the index real-time 2017-10-21 05:05:29 +01:00
Richard Davey
bda588df02 Added a Stepped ease. 2017-10-21 03:54:51 +01:00
Richard Davey
4fb743005c Array configs come first. 2017-10-20 18:49:19 +01:00
Richard Davey
a93a7e0562 Fixed object setter 2017-10-20 03:48:50 +01:00
Richard Davey
82e210845e MinMax can be configured via objects or numbers 2017-10-20 03:20:24 +01:00
Richard Davey
053eea0b3a Fixed bug and added copyToMinMax function 2017-10-18 02:26:05 +01:00
Richard Davey
f13043ee63 Math.MinMax classes added 2017-10-17 21:32:00 +01:00
Richard Davey
61c8f63168 Tidying up comments 2017-10-17 21:31:45 +01:00
Richard Davey
f751d4066a Added Math.FromPercent function 2017-10-17 21:31:28 +01:00
Richard Davey
66fc40845b Defaults y to x if not given 2017-10-17 04:18:29 +01:00
Richard Davey
e6dfa1da73 Removed object check in 'set' and added y argument default to x 2017-10-16 22:57:28 +01:00
Richard Davey
b28962e442 Split Curve up into includes and tidied up the namespace so it all now lives under Phaser.Curves. 2017-10-13 16:39:41 +01:00
Richard Davey
876d885167 jsdoc blocks added. 2017-10-12 13:12:52 +01:00
Richard Davey
069cbe9e62 Splitting up ready for jsdocs. 2017-10-12 12:47:20 +01:00
Richard Davey
1f967ae72b More JSDocs added. 2017-10-06 06:16:31 +01:00
Richard Davey
ea94059b65 Lots more jsdoc blocks added. 2017-10-06 04:52:41 +01:00
Richard Davey
a5f306f5f5 Adding jsdoc blocks. 2017-10-06 03:05:01 +01:00
Richard Davey
865264b1b5 eslint fix. 2017-09-29 11:42:05 +01:00
Richard Davey
ba2f351544 Added the consts back into Math 2017-09-22 01:34:30 +01:00
Richard Davey
3d09a834b7 Added Vector.equals methods. 2017-09-21 17:11:56 +01:00
Richard Davey
a89c6a872a Fixed undef var error. 2017-09-21 14:26:18 +01:00
Richard Davey
3845461c03 Swapped t position in CatmullRom 2017-09-21 02:30:35 +01:00
Richard Davey
9ec7a52dcc Added Vector2.normalizeRightHand 2017-09-21 02:03:37 +01:00
Richard Davey
2d357d7526 Moved the Curves objects into their own folder and namespace and optimized the vector creation within them 2017-09-20 23:10:37 +01:00
Richard Davey
aab4896582 Added Vector2.angle method 2017-09-20 23:10:03 +01:00
Richard Davey
04e54efe43 Refined Math.Clamp. 2017-09-20 16:51:15 +01:00
Richard Davey
6aae306aa0 Added Mat4.makeRotationAxis. 2017-09-20 16:51:06 +01:00
Richard Davey
c48501b4ec Added scale isFinite check and Vector3.crossVectors. 2017-09-20 16:50:48 +01:00
Richard Davey
809593ea34 Vec3 and Vec4 can now take a Vec2, 3 or 4 as a valid type of the add, sub, mult and divide methods 2017-09-19 00:45:03 +01:00
Richard Davey
11aa39e29e Removed the Vector random methods and moved to their own function as they're swappable between each other 2017-09-18 21:48:26 +01:00
Richard Davey
44ab157523 Removed comments and tidied up arguments 2017-09-18 20:52:23 +01:00
Richard Davey
2d6c00125f Tidying up code and remove old files 2017-09-16 02:31:33 +01:00
Richard Davey
f048473ab9 Fixed the prototype assignments. 2017-09-15 16:46:35 +01:00
Richard Davey
7be33051ca Added all the vector math classes: Vector2, Vector3, Vector4, Matrix3, Matrix4 and Quaternion. Exposed via Phaser.Math namespace. 2017-09-15 16:46:35 +01:00
Richard Davey
83d985b4b2 Testing out a 3D Camera 2017-09-15 04:04:51 +01:00
Richard Davey
56bc4d1547 Using MATH_CONST properly to avoid entire library import. Swapping to removing all index.js listings to avoid globbing. 2017-09-13 17:09:16 +01:00
photonstorm
2ddafdd0b5 Moved out of core and fixed Point path. 2017-08-08 17:16:23 +01:00
photonstorm
52bb355429 Removing old and incorrect jsdoc blocks ready for first documentation pass. 2017-08-01 13:10:08 +01:00
photonstorm
d6abc26ba7 Fixed bug in FloatBetween. 2017-07-27 14:32:47 +01:00
photonstorm
f141b6b139 RDG now proper class. 2017-07-04 13:10:40 +01:00
Richard Davey
65e2deb203 Added Math.isEven and isEvenStrict 2017-06-27 23:23:09 +01:00
Alex Ford
8c50c091bb Change whitespace to more clearly indicate operator precedence 2017-06-26 20:47:18 +01:00
Richard Davey
5fff7c4c55 Removed console.log and fixed Wrap function. 2017-06-17 04:15:02 +01:00
photonstorm
ea44513fda ESLint updates. 2017-06-02 17:08:22 +01:00
photonstorm
2fbbee5dc6 Revised Seeking to handle repeats (almost) 2017-05-25 17:16:20 +01:00
Richard Davey
4baf3264dd Fixed Linear ease map entry. 2017-05-17 02:47:14 +01:00
Richard Davey
418af7351e Fixed EaseMap. 2017-05-10 04:29:42 +01:00
Richard Davey
1fd4eb13a1 Added a string-lookup EaseMap. 2017-05-10 00:42:59 +01:00