Overview of Mathfs features
masterMathfs provides a wide range of mathematical utilities for Unity developers, including:
- 2D Intersection Tests: Between Rays, LineSegments, Lines, and Circles.
- Curves & Splines: Bézier (Quadratic, Cubic, Generalized), Hermite, Catmull-Rom, B-Spline, NURBS, and Trajectory curves.
- Trajectory Math: Functions for displacement, launch speed, launch angles, max range, and height potential.
- Triangle & Polygon Math: Area/SignedArea, containment checks, Incenter/Centroid, Incircle/Circumcircle, and winding numbers.
- Circle Math: Creating circles from two or three points, and conversions between radius, area, and circumference.
- Vector & Angle Helpers: 2D angle conversions (
AngToDir,DirToAng), vector rotations, and expanded vector operations (Clamp, Round, Abs, etc.). - General Utilities: Quadratic/Linear root finders, remap functions, smoothing functions, and mathematical constants (Tau, Pi, Golden Ratio, e, sqrt2).