UNPKG

@zxh19890103/wik

Version:

The world-class JavaScript library for building large-scale digital warehouse both on 2D and 3D.

15 lines (14 loc) 656 B
export declare const D2R: number; export declare const R2D: number; export declare const HALF_PI: number; export declare const DEFAULT_ZERO_VECTOR: L.LatLngLiteral; export declare const DEFAULT_ZERO_RAD: number; export declare const distanceBetween: (p0: L.LatLngLiteral, p1: L.LatLngLiteral) => number; export declare const lengthOf: (vec: L.LatLngLiteral) => number; /** * returns a unit vector representing the angle in radian format. * @param rad clockwise is positive. counterClockwise is negative. * @returns */ export declare const rad2vector: (rad: number) => L.LatLngLiteral; export declare const vector2rad: (vec: L.LatLngLiteral) => number;