Richard Davey
1b4af32ec2
The Quaternion
class constructor will now default the values to 0,0,0,1
if they're not provided, making it an identity quaternion, rather than the 0,0,0,0
it was before.
2020-09-21 10:13:50 +01:00
Richard Davey
0e2911c4a5
Added fromRotation and mult methods
2020-09-18 17:50:40 +01:00
Richard Davey
d40f99c332
Vertor3.addScale
is a new method that will add the given vector and multiply it in the process.
2020-09-17 18:07:54 +01:00
Richard Davey
4baa0522b9
Bumping to 3.50
2020-07-31 13:41:29 +01:00
Richard Davey
771509d6c2
Phaser.Types.Math.Vector4Like
is a new data type representing as Vector 4 like object.
2020-07-29 17:42:12 +01:00
Richard Davey
23c00d148d
Phaser.Types.Math.Vector3Like
is a new data type representing as Vector 3 like object.
2020-07-29 17:41:59 +01:00
Richard Davey
bbdf9b9853
Fixed data type
2020-07-14 09:45:30 +01:00
samme
a626ba2777
Add Math#RotateTo
2020-07-03 11:08:04 -07:00
Richard Davey
4d190470f3
Fixed Vector2Like types
2020-04-27 16:13:17 +01:00
Richard Davey
a03b6e6592
Lint fixes
2020-04-27 12:59:28 +01:00
Richard Davey
43670b1abc
Merge pull request #5032 from jcyuan/master
...
TS def improvements
2020-04-27 11:56:59 +01:00
Richard Davey
8733847842
Should be between -180, 180 #5075
2020-04-27 10:23:55 +01:00
Richard Davey
92e4345c0e
Should be between -pi, pi #5075
2020-04-27 10:23:44 +01:00
Richard Davey
18d5767e14
Merge pull request #5075 from samme/feature/math-angle-random
...
Add Phaser.Math.Angle.Random() and Phaser.Math.Angle.RandomDegrees()
2020-04-27 10:18:59 +01:00
Richard Davey
fbceacf387
Merge pull request #5092 from samme/feature/Vector2-methods
...
Add Phaser.Math.Vector2 methods
2020-04-27 10:17:42 +01:00
samme
b47073395b
Docs: generic return
2020-04-24 13:30:07 -07:00
samme
32a8927736
Docs: Math
...
RotateAround, RotateAroundDistance
2020-04-24 13:10:06 -07:00
samme
6506295d62
Add Vector2 methods
2020-04-17 10:21:04 -07:00
samme
b51b0a1d2a
Add Math.Angle.Random() and Math.Angle.RandomDegrees()
2020-04-02 10:41:43 -07:00
samme
9ff1634e66
Docs: correct names for easing functions
...
Linear, Stepped. #5062
2020-03-29 14:42:42 -07:00
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