Vector API
A 2D, 3D and n-dimensional vector maths toolkit. The op endpoint performs the operation you ask for on one or two vectors: add and subtract, scale by a factor, negate, the dot product, the cross product (a vector in 3D, the scalar z-component in 2D), the magnitude (length), the unit (normalized) vector, the Euclidean distance and the angle between two vectors (in both radians and degrees), linear interpolation (lerp) between two vectors, and the projection of one vector onto another. The info endpoint analyses a single vector — its dimension, magnitude, unit vector and, for 2D, its heading angle from the x-axis. Vectors are just comma-separated components like 3,4 or 1,2,3, and operations work in any dimension up to 32 (cross product is 2D/3D only). Everything is exact local maths, so it is instant and deterministic. Ideal for game and physics engines, graphics and WebGL/canvas, robotics and navigation, data-visualisation, simulations and engineering tools. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This does vector algebra; for plane-angle unit conversion use the Angle API and for shape area/perimeter use the Geometry API.
api.oanor.com/vector-api