UNPKG

@amandaghassaei/vector-math

Version:

A minimal vector math library to handle 2D/3D translations and rotations, written in TypeScript.

15 lines (14 loc) 558 B
/** * Default numerical tolerance for all mathematical operations and equality checks. */ export declare const DEFAULT_NUMERICAL_TOLERANCE = 1e-15; /** * Set global numerical tolerance for all mathematical operations and equality checks. * Default numerical tolerance is 1e-15. * @param tolerance - Numerical tolerance to set. */ export declare function setNumericalTolerance(tolerance: number): void; /** * Get global numerical tolerance for all mathematical operations and equality checks. */ export declare function NUMERICAL_TOLERANCE(): number;