@technobuddha/library
Version:
A large library of useful functions
13 lines (12 loc) • 501 B
TypeScript
import type { Cartesian } from '../coordinates';
/**
* Computes the angle between two points (x1,y1) and (x2,y2).
* Angle zero points in the +X direction, PI/2 radians points in the +Y
* direction (down) and from there we grow clockwise towards PI*2 radians.
*
* @param a first point.
* @param b second.
* @return Standardized angle in radians of the vector from *a* to *b*.
*/
export declare function angleBetweenPoints(a: Cartesian, b: Cartesian): number;
export default angleBetweenPoints;