- update random number generator seed wrapping
- fix random number generator range
- add 🚀 random number generator
- add 🏠 update tooling
- update 🏠 refine output paths
- fix esm publish types
- fix build and publish types
- fix Vector2::cross product calculation.
- add Rect getters for edge coordinates
- add Point::scale
-
break remove Point::toCartesian. x and y already exist on a Point.
-
break remove Vector2::toCartesian. x and y already exist on a Vector2.
-
break remove Vector2::position. Just use .pos.
-
break Vector2::unit returns itself and is mutative. Previously it was non-mutative and returned a new instance.
-
break ray casting and projecting always returns Vector2. Previously it returned the Position value of a Vector2.
-
add Vector2.length getter (same as len(), returns vector magnitude)
-
update modern build chain using swc
- update change file extension for better interop with bundlers
-
break Ray::project returns position only
-
break lerp operands have changed to enable currying of the function
-
break clamp operands have changed to enable currying of the function
-
break wrap operands have changed to enable currying of the function
-
add additional examples
-
add Vector2::of constructor method
-
update documentation
-
update min and max now accepts Sets
- update examples
- add Ray::of
- add compat build outputs
- add dead code removal hints for shakey shakey
- update es6 and cjs builds
- add umd distributable
- update reduce point and rect weight
- add rect::contains
- add lots more juicy Point helpers
- add lots more juicy Rect helpers
- add vector positional component getters
- add vector static rotate method
- update examples
## 2.1.0
- update vector length method
- update use rollup and buble
-
update use arrays for structures rather than objects
-
update vectors
-
add additional vector functionality
-
add additional rect functionality
-
add tests
-
update dependencies
- update extra helper methods
- update examples
- add vectors
- add primitives (point, rect)
- add helpers (clamp, wrap, min, max)
- add transforms (radians/degrees)
- add distance helpers (manhattan, euclidean)