@hycord/math
v0.0.1
Published
This package holds a number of math-related utilities for my projects.
Readme
@hycord/math
This package holds a number of math-related utilities for my projects.
Utilites
basicBasic math functions such as min, max, and other statistical helpersconstantsBasic constant values such as defining EPSILON or DEGREEVector2DClass which wraps a collection of helper functions to make working with 2D vectors nicer- Geometry:
PointBasic point class which is similar to a 2d vectorSegmentHelper class to wrap two pointsPolygonHelper class to wrap multiple points and segments.
Geomoetric functions also have corrosponding functions to render them within the @hycord/image's Viewport class if you would like to display the geometric classes. Every geometric class has a corrosponding function to draw it so you can draw advanced shapes with them while also having a rigid data structure instead of arbitrary circles and lines in a canvas.
