samme
c3dae63c20
Description for Vector2#normalizeRightHand
2020-03-21 13:57:12 -07:00
J.C
d8dc7fb4d7
TS def improvements
2020-03-02 20:14:25 +08:00
Richard Davey
b5d91f1fdf
Finished JSDocs
2020-02-04 14:51:43 +00:00
Richard Davey
06bad68468
Improved JSDocs
2020-01-20 15:47:38 +00:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Andrew Brampton
e42f227ec2
Update documentation and one import, to use the consistent name of Vector2
.
...
There were examples that used Vec2, which wouldn't work. For example `An array of Point or Vector2 objects: [new Phaser.Math.Vec2(x1, y1), ...]` was not copy and pastable.
2020-01-11 06:46:25 -08:00
Richard Davey
b0c101a1cc
Merge pull request #4926 from samme/feature/distances
...
Add Phaser.Math.Distance methods
2019-12-28 16:14:12 +00:00
samme
148e907b71
Add Math.Distance methods
...
- BetweenPoints()
- BetweenPointsSquared()
- Chebyshev()
- Snake()
2019-12-23 17:20:43 -08:00
Richard Davey
55212dc2fb
Merge pull request #4892 from BeLi4L/master
...
TypeScript: Improve `Phaser.Math.RND` types
2019-12-18 14:36:52 +00:00
samme
da2a0233a6
Correct docs for Phaser.Math.GetSpeed()
...
Fixes #4895
2019-12-04 12:34:09 -08:00
Valentin Vetter
f3350ce5a8
TypeScript: improve pick/shuffle types
2019-12-01 22:36:47 +01:00
Richard Davey
e5f93738ca
Merge pull request #4807 from jcyuan/master
...
fix TS issues and fix the condition to check video support.
2019-11-19 10:49:09 +00:00
Richard Davey
50d9931c11
Added cached MIN/MAX SAFE INT for IE support #4833
2019-11-18 17:01:55 +00:00
J.C
6c880c7976
fix wrong function name of TS def (the correct names are in index.js
)
2019-10-23 17:47:19 +08:00
Richard Davey
64b3e834d3
Testing rotation fix
2019-07-25 17:57:20 +01:00
Richard Davey
a61207b890
Math.ToXY
is a new mini function that will take a given index and return a Vector2 containing the x and y coordinates of that index within a grid.
2019-06-25 16:57:05 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8
Fixed Types references
2019-05-09 15:32:53 +01:00
Richard Davey
e916dbe783
Math Types
2019-05-09 12:32:37 +01:00
Richard Davey
7c4fd3fadc
Improved jsdocs
2019-04-17 10:52:23 +01:00
Richard Davey
0479badd6e
Properties are optional
2019-02-13 17:20:10 +00:00
Richard Davey
43b4aad96c
Math typedefs
2019-02-13 14:20:51 +00:00
Richard Davey
56dfdb7a74
More jsdoc global fixes
2019-02-12 12:14:26 +00:00
Richard Davey
63e1ddb20b
Tidying up the code format.
2019-01-18 16:11:59 +00:00
Richard Davey
11dc4dcce2
Merge pull request #4290 from Aedalus/master
...
Vector2/3 Constants
2019-01-18 16:09:54 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Alexander Higgins
bc602949b8
Added reference constants to Vector2 and Vector3
2019-01-10 21:11:26 -05:00
Richard Davey
7513a1c351
JSDoc update
2019-01-09 14:19:27 +00:00
Richard Davey
a6447cd6b0
Updated docs and change log
2019-01-04 13:33:56 +00:00
Richard Davey
f4f4512d0f
Fixed Math.RND assignment. Fix #4197 .
2018-12-13 13:09:14 +00:00
Richard Davey
2780babe10
Final Doc Jam merge
2018-12-03 15:16:23 +00:00
Richard Davey
64d2b26398
Tidied up the control flow
2018-11-23 18:58:01 +00:00
Richard Davey
dbdfb0e95c
RandomDataGenerator.shuffle
has been fixed to use the proper modifier in the calculation, allowing for a more even distribution
2018-11-21 11:23:48 +00:00
Richard Davey
f95f611c1f
Added CounterClockwise helper function
2018-10-26 19:38:51 +01:00
Richard Davey
6b34ef0e4f
Added translateXYZ and scaleXYZ
2018-10-24 23:46:27 +01:00
Richard Davey
d3b573a615
MATH_CONST no longer requires or sets the Random Data Generator, this is now done in the Game Config, allowing you to require the math constants without pulling in a whole copy of the RNG with it.
2018-10-24 14:08:49 +01:00
Richard Davey
07bb619c5e
Added jsdocs
2018-10-19 16:14:51 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
e297b3272e
Added hundreds of new jsdoc descriptions
2018-10-01 11:35:01 +01:00
Richard Davey
818a28073f
Added jsdocs
2018-09-28 11:04:19 +01:00
Richard Davey
91f7e27ae8
Transform.getWorldTransformMatrix
has been recoded to iterate the transform parents correctly, applying the matrix multiplications as it goes. This (along with some changes in the Input Manager) fix the issue with Game Objects inside of Containers failing hit tests between certain angles. Fix #3920
2018-08-29 16:10:48 +01:00
Richard Davey
3cc17f5c97
The RandomDataGenerator will now create a default random seed if you instantiate your own version of the class (instead of using Phaser.Math.RND
) and don't provide a seed for it
2018-08-21 14:06:41 +01:00
Chris Andrew
f46bd2cacd
Fixed documentation for a Vector2 constructor parameter and its ZERO constant.
2018-08-17 00:18:26 +01:00
Richard Davey
eff01adbc9
Added divide argument to the Snap methods.
2018-08-03 00:34:11 +01:00
Richard Davey
7ccd469048
Updated the jsdocs.
2018-07-25 00:18:45 +01:00
Richard Davey
7aa46657c2
Tidying up jsdocs and changing float to number
2018-06-26 23:19:14 +01:00
Chris Andrew
c2bfc52987
Documented the majority of the Geom Line functions.
2018-06-21 18:13:56 +01:00
Chris Andrew
e140640583
Minor punctuation fix for Vector distanceSq() method descriptions.
2018-06-14 15:12:10 +01:00
Chris Andrew
ee6f48b10c
Fixed an incorrect usage of Math.abs() in Quaternion.calculateW() (thanks @qxzkjp).
2018-05-31 18:05:31 +01:00
Chris Andrew
40ba9a2ddf
Improved descriptions for Quaternion.conjugate() and Quaternion.calculateW().
2018-05-31 17:55:07 +01:00
Chris Andrew
56b43c5cc0
Improved Quaternion.conjugate() description.
2018-05-31 17:42:57 +01:00
Chris Andrew
e52e9ff8ec
Documented a few more Matrix descriptions. Fixed Matrix4.makeRotationAxis().
2018-05-31 17:32:25 +01:00
Chris Andrew
0fdb7fcab6
Documented SinCosTableGenerator and a few more easing parameters.
2018-05-31 16:29:42 +01:00
Chris Andrew
dad6b78c9b
Documented almost all of Math.Quaternion. Fixed lint error in RandomOutside.
2018-05-31 15:17:59 +01:00
Chris Andrew
05f55dc5ed
Minor parameter renaming for SmoothStep interpolation functions.
2018-05-24 19:06:57 +01:00
Chris Andrew
2e0b50ee90
Simplified implementations of SmoothStepInterpolation and SmootherStepInterpolation.
2018-05-24 18:55:24 +01:00
Chris Andrew
2f3c35c5b5
Fixed SmoothStepInterpolation and SmootherStepInterpolation implementations.
...
Improved documentation consistency of SmoothStep, SmootherStep, SmoothStepInterpolation and SmootherStepInterpolation.
2018-05-24 18:48:12 +01:00
Chris Andrew
f38a0683ff
Updated SmoothStep and SmootherStep documentation. Fixed lint errors.
2018-05-24 18:11:18 +01:00
Chris Andrew
424b5d72cd
Added SmootherStep interpolation function.
2018-05-24 18:02:53 +01:00
Richard Davey
603483ee69
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-05-24 17:30:31 +01:00
Richard Davey
bed3968ff7
Added SmoothStep interpolation function
2018-05-24 17:04:02 +01:00
Richard Davey
2684e7d988
Updated docs and added native clamping
2018-05-24 17:03:42 +01:00
Chris Andrew
e6d1df56cd
Started documenting Matrix3 and Matrix4.
2018-05-24 16:41:59 +01:00
Chris Andrew
3a56fc32f7
Described all easing functions.
2018-05-24 15:44:49 +01:00
Chris Andrew
1aeb8327e7
Started documenting Math.Easing functions.
2018-05-24 13:33:47 +01:00
Chris Andrew
313ae38bb1
Improved Math.Angle function documentation.
2018-05-24 13:14:04 +01:00
Chris Andrew
1c94c3d4d6
Documented a few more Phaser.Math functions.
2018-05-24 12:59:27 +01:00
Chris Andrew
c9d82c9ebd
Documented Math.Snap functions.
...
Adapted from Phaser CE documentation.
2018-05-24 12:15:37 +01:00
Chris Andrew
5e374b29dc
Elaborated fuzzy math function descriptions.
...
Finished up pow2 and RandomDataGenerator descriptions.
2018-05-24 12:06:44 +01:00
Chris Andrew
0f9bfc62f8
Documented Math.Distance, Math.Fuzzy and Math.Interpolation.
2018-05-24 11:40:53 +01:00
Chris Andrew
4726b8f2eb
Merge pull request #3696 from hexus/documentation
...
Phaser.Math Documentation
2018-05-23 18:49:29 +01:00
Chris Andrew
03fee98511
Reverted Vector3.setTo() implementation. Fixed an ESLint issue in RenderTexture.
2018-05-23 18:37:32 +01:00
Chris Andrew
8c3a9ea42b
Documented Math.Angle functions and Math.Wrap.
2018-05-23 17:42:54 +01:00
Richard Davey
182015bdbc
Merge pull request #3695 from wtravO/master
...
Fixed JSDoc error in RND.shuffle param
2018-05-23 15:30:42 +01:00
Travis O'Neal
87d1621bfc
Fixed JSDoc error in shuffle param
2018-05-23 10:17:07 -04:00
Chris Andrew
01d45f5d83
Documented most of Vector4. Improved documentation consistency between Vector classes.
2018-05-23 15:00:03 +01:00
Chris Andrew
c9d17fb9c7
Implemented Vector3.setTo() (alias for set()).
...
Fixed some documentation mistakes. Removed appropriate TODO.
2018-05-23 12:19:31 +01:00
Chris Andrew
d8163439a1
Documented most of Vector3. Improved Vector2 documentation.
2018-05-23 12:15:16 +01:00
Chris Andrew
dca9f11f0f
Started documenting top-level Phaser.Math functions and classes.
2018-05-23 10:46:16 +01:00
Richard Davey
103e0c8727
Updated RandomDataGenerator.shuffle to remove several internal calls as min is always zero
2018-04-26 13:02:13 +01:00
Richard Davey
44314845f5
Merge pull request #3564 from wtravO/master
...
Added array shuffle method to RDG
2018-04-26 12:38:19 +01:00
Daniel
78d1c566ef
Fix comment alignment
2018-04-25 20:25:29 +10:00
Daniel
9f8d87c23f
Fill some description tags in Vector2.js. Fixed some descriptions.
...
Filled for:
setFromObject
constructor
2018-04-25 20:10:49 +10:00
Daniel
1f50bbd221
Filled many description tags for methods in Vector2.
...
These include:
reset,dot, normalize, lengthSq, length, distance, distanceSq, negate,
divide, multiply, add, subtract, scale, angle, equals, setTo, set, copy,
clone
2018-04-24 17:40:51 +10:00
Daniel
f347af853f
Fix grammar in return statement description DegToRad.js
2018-04-24 16:29:51 +10:00
Daniel
529c35adda
Update return statement description in RadToDeg
2018-04-24 16:27:19 +10:00
Daniel
516c8cb29d
Update return statement description in DegToRad
2018-04-24 16:26:47 +10:00
Daniel
bad01055e1
Fill description tags in IsEven.js
2018-04-24 16:23:42 +10:00
Daniel
ce4702cbc2
Fill all description tags in RoundAwayFromZero.js
2018-04-24 16:23:26 +10:00
Daniel
bea966f646
Fill in remaining description tags for Within.js
2018-04-24 16:22:52 +10:00
Daniel
2fbb29f79a
Fill all description tags in Rotate.js
2018-04-24 16:22:05 +10:00
Daniel
31ed7f7673
Fill all description tags in TadToDeg.js
2018-04-24 13:48:11 +10:00
Daniel
c119d570ee
Fill all description tags in DegToRad.js
2018-04-24 13:47:55 +10:00
Daniel
96d1b691fa
Add full stop to docs
2018-04-22 17:07:55 +10:00
Daniel
0e3c1064c9
Actually fill in the doc tags, instead of commiting the wrong thing
2018-04-22 17:04:11 +10:00
Daniel
0a422fce0c
Add full stops at the end of doc sentences
2018-04-22 17:03:47 +10:00
Daniel
d67559debc
Fill all description tags for Phaser.Math.Difference
2018-04-22 17:00:03 +10:00
Daniel
ea1d01b325
Fill all description tags for Phaser.Math.Factorial
2018-04-22 16:59:44 +10:00
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