UNPKG

@turbox3d/math

Version:

Large-scale graphics application math library

23 lines (22 loc) 778 B
export declare const TOLERANCE = 0.000001; export declare const TOLERANCE_HALF: number; export declare const TOLERANCE_SQUARE: number; export declare const TOLERANCE_SAGITTA = 1; export declare class Tolerance { static COS_TOL: number; static DIST_TOL: number; static NUM_TOL: number; static global: Tolerance; static setGlobal(cosTol: number, distTol: number, numTol: number): void; cosTol: number; distTol: number; numTol: number; constructor(cosTol?: number, distTol?: number, numTol?: number); /** * set cosTol by given angle * @param angle * @param isRadian true means the angle is radian, false means the angle is degree */ setCosTolByAngle(angle: number, isRadian: boolean): void; clone(): Tolerance; }