Releases: LCluber/Type6.js
Releases · LCluber/Type6.js
3.0.0
Version 3.0.0 (May 18th 2021)
- Vector class:
- Fix Vector opposite method
- improved performances
- Vector2 class:
- Add setScalar(), setArray(), isEqualTo(), setRadian(), setDegree(), setMinAxis(), setMaxAxis() methods
- Delete set(), clone(), setFromArray() and setFromAngle() methods
- opposite() and absolute() methods now accept an axis name as parameter to set only this axis.
- Vector3 class:
- Add setScalar(), setArray() and isEqualTo() method
- Delete set(), setFromArray() and clone() methods
- Circle class:
- First parameter of set() method and constructor is now Radius.
- Delete set(), setPositionXY() and setPositionFromVector() methods
- Add setPosition(), setRadius() and setDiameter() methods
- Rectangle class:
- First parameters of constructor are now width and height.
- delete setPositionXY(), setPositionX(), setPositionFromVector() and setPositionY() methods
- delete set(), setSizeXY(), setSizeX(), setSizeFromVector() and setSizeY() methods
Fix Rectangle and Circle classes
- Fix Rectangle and Circle classes
Shorter vectors methods names
- setFromScalar(), setFromArray(), setFromRadian() and setFromDegree() methods from Vector2 class becomes setScalar(), setArray(), setRadian() and setDegree()
- setFromScalar(), setFromArray() methods from Vector3 class becomes setScalar(), setArray()
improved performances
- improved performances
- improved typings for Vector2 and Vector3 use with Typescript
Better typing for vectors
- improved typings for Vector2 and Vector3 use with Typescript
new methods for vectors
- Vector class:
- Replace isOrigin() method by isEqualTo(scalar) method
- Fix Vector opposite method
- Vector2 class:
- Constructor now accept numbers, array or Vector2 as parameters
- set() method now accept numbers, array or Vector2 as parameters
- Delete copy() and setFromAngle() methods
- Add setFromRadian(), setFromDegree, setMinAxis(), setMaxAxis() methods
- opposite() and absolute() methods now accept an axis name as parameter to set only this axis.
- Vector3 class:
- Constructor now accept numbers, array or Vector3 as parameters
- set() method now accept numbers, array or Vector3 as parameters
- Delete copy() method
- Circle class:
- First parameter of set() method and constructor is now Radius.
- Position parameters of constructor can be given as numbers, array, angle or Vector2
- Delete set(), setPositionXY() and setPositionFromVector() methods
- Add setPosition(), setRadius() and setDiameter() methods
- Rectangle class:
- First parameters of constructor are now width and height.
- Position parameters constructor can be given as numbers, array, angle or Vector2
- setPosition() method now accept numbers, array, angle or Vector2
- setSize() method now accept numbers, array, angle or Vector2
- delete setPositionXY(), setPositionX(), setPositionFromVector() and setPositionY() methods
- delete set(), setSizeXY(), setSizeX(), setSizeFromVector() and setSizeY() methods
CommonJS
Vectors refacto
- smaller package size
- vector Classes refactor
setFromArray
delete setFromArray() method in Vector2 and Vector3 classes
lookAtRH()
- fix lookAtRH() method in Matrix4x3 class