UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

10 lines 421 B
import type { TRadian } from '../../typedefs'; /** * Calculate the cos of an angle, avoiding returning floats for known results * This function is here just to avoid getting 0.999999999999999 when dealing * with numbers that are really 1 or 0. * @param {TRadian} angle the angle * @return {Number} the cosin value for angle. */ export declare const cos: (angle: TRadian) => number; //# sourceMappingURL=cos.d.ts.map