geopf-extensions-openlayers
Version:
French Geoportal Extensions for OpenLayers libraries
70 lines • 2.38 kB
TypeScript
export default MathUtils;
declare namespace MathUtils {
function modulo(a: number, b: number): number;
function decimalToDMS(degrees: number, hemispheres: any[], numDigits: number): any;
/**
* Transform decimal degrees form degrees, minutes, seconds
*
* @function dmsToDecimal
* @param {*} degrees - degrees
* @param {*} minutes - minutes
* @param {*} seconds - seconds
* @param {*} hemispheres - "NS" ou "EO"
* @returns {Number} decimal coordinate
*/
function dmsToDecimal(degrees: any, minutes: any, seconds: any, hemispheres: any): number;
/**
* ol coordinate to decimal
*
* @function coordinateToDecimal
* @param {*} olCoordinate - see ol/coordinate.js
* @returns {Object} - {lat, lng, unit:°}
*/
function coordinateToDecimal(olCoordinate: any): any;
/**
* ol coordinate to dms
*
* @function coordinateToDMS
* @param {*} olCoordinate - see ol/coordinate.js
* @returns {Object} - {lat, lng, unit:dms}
*/
function coordinateToDMS(olCoordinate: any): any;
/**
* ol coordinate to rad
*
* @function coordinateToRad
* @param {*} olCoordinate - see ol/coordinate.js
* @returns {Object} - {lat, lng, unit:rad}
*/
function coordinateToRad(olCoordinate: any): any;
/**
* ol coordinate to gon
*
* @function coordinateToGon
* @param {*} olCoordinate - see ol/coordinate.js
* @returns {Object} - {lat, lng, unit:gon}
*/
function coordinateToGon(olCoordinate: any): any;
/**
* ol coordinate to meter
*
* @function coordinateToMeter
* @param {*} olCoordinate - see ol/coordinate.js
* @returns {Object} - {x, y, unit:m}
*/
function coordinateToMeter(olCoordinate: any): any;
/**
* ol coordinate to kilometer
*
* @function coordinateToKMeter
* @param {*} olCoordinate - see ol/coordinate.js
* @returns {Object} - {x, lyng, unit:km}
*/
function coordinateToKMeter(olCoordinate: any): any;
function toInteger(s: string, base: Numeric): null | Numeric;
function isInteger(s: string): boolean;
function toFloat(s: string): null | Numeric;
function convertSecondsToTime(duration: number): string;
function convertDistance(distance: number): string;
}
//# sourceMappingURL=MathUtils.d.ts.map