Richard Davey
3b8c78cca2
Quaternion.fromEuler
is a new method that will set the quaternion from the given Euler
object, optionally calling the onChangeCallback
in the process.
...
The `Quaternion.set` method has a new optional boolean parameter `update` (defaults to `true`), which will call the `onChangeCallback` if set.
2020-09-30 11:21:28 +01:00
Richard Davey
368df2acef
Quaternion
now has a new property onChangeCallback
which, if set, will be invoked each time the quaternion is updated. This allows you to link change events to other objects.
...
Internally, the `Quaternion` class now has 4 new private properties: `_x`, `_y`, `_z` and `_w` and 4 new getters and setters for the public versions. It also now passes most methods via `set` to allow for the onChange callback to be invoked. This does not change the public-facing API.
2020-09-30 11:02:33 +01:00
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
b5d91f1fdf
Finished JSDocs
2020-02-04 14:51:43 +00:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +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
dad6b78c9b
Documented almost all of Math.Quaternion. Fixed lint error in RandomOutside.
2018-05-31 15:17:59 +01:00
orblazer
7e05b333a0
Fix multiple types on Math
2018-03-20 16:06:30 +01:00
Richard Davey
4fe6a25117
Added jsdoc data types
2018-03-19 11:25:46 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
3ba739756c
Added jsdocs.
2018-01-26 06:19:27 +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