Releases: EricRovell/vector
Releases · EricRovell/vector
v1.0.0: Stable release
1.0.0 (2021-03-21)
- [breaking]: rename
.random()
method into.random2d()
;
0.17.0
- [breaking]: rename input types;
- [breaking]: rename
.set()
,.round()
,.ceil()
,.floor()
methods by addingself
postfix to mark methods as mutable; - [feat]: implement
[Symbol.toPrimitive]
;
0.16.0
- [fix]: handle non-positive values for
.limit()
and.limitSelf()
methods; - [feat]: implemented
crossSelf()
method, the mutable version ofcross()
;
0.15.0: Mapping
- [feat]:
.map()
method; - [feat]:
.mapSelf()
method; - [refactor]: use
.mapSelf
and.map
internally to simplify other methods internals; - [breaking]: replace
.unit
getter with.normalize()
method;
0.14.0: Math utils & missing mutable methods
- [feat]:
.setMagnitudeSelf()
method; - [feat]:
.limitSelf()
method; - [feat]:
round
method; - [feat]:
floor
method; - [feat]:
ceil
method; - [feat]:
clamp
method;
0.13.0: Inverse Scaling
- [feat]:
scale()
andscaleSelf()
second argument for reciprocal scaling;
0.12.1: Post install fix
- [fix]: rename
postinstall
script, as it used dev dependency and breaked theCI/CD
pipeline;
0.12.0: Cylindrical coordinate system
- [feat]: Cylindrical coordinate system input support;
0.11.1: ESM fix
- [fix]: Update ESM module extension for new Node version;
0.11.0: Mutability & simple input
- [feat]:
addSelf()
method; - [feat]:
scaleSelf()
method; - [feat]:
subSelf()
method; - [feat]:
rotateSelf()
method; - [feat]:
rotateSelf3d()
method; - [feat]:
setPhiSelf()
method; - [feat]:
setThetaSelf()
method; - [feat]:
setComponentSelf()
method; - [feat]:
set()
method; - [feat]:
normalizeSelf()
method; - [feat]: update input options for
add()
,cross()
,distance()
,distanceSq()
,dot()
,equality()
,reflect()
,sub()
methods; - [breaking]: update
lerp()
defaultcoef
value to 1;