image-js
Version:
Image processing and manipulation in JavaScript
16 lines • 569 B
TypeScript
import type { Point } from './points.js';
/**
* Convert radians to degrees.
* @param radians - Angle in radians.
* @returns Angle in degrees.
*/
export declare function toDegrees(radians: number): number;
/**
* Returns the angle between 3 points. The first one is the point where the angle is.
* @param origin - Origin where the angle has to be measured.
* @param p1 - First point.
* @param p2 - Second point.
* @returns The angle in radians.
*/
export declare function angle(origin: Point, p1: Point, p2: Point): number;
//# sourceMappingURL=angles.d.ts.map