UNPKG

@technobuddha/library

Version:
13 lines (12 loc) 501 B
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;