<commit_before>/**
 * @module og/LonLat
 */

'use strict';

import * as mercator from './mercator.js';

const HALF_PI = Math.PI * 0.5;
const INV_PI_BY_180 = 180.0 / Math.PI;
const INV_PI_BY_360 = INV_PI_BY_180 * 2.0;
const PI_BY_360 = Math.PI / 360.0;
const INV_PI_BY_180_HALF_PI = INV_PI_BY_180 * HALF_PI;

/**
 * Represents a geographical point with a certain latitude, longitude and height.
 * @class
 * @param {number} [lon] - Longitude.
 * @param {number} [lat] - Latitude.
 * @param {number} [height] - Height over the surface.
 */
export class LonLat {

    constructor(lon, lat, height) {

        /**
         * Longitude.
         * @public
         * @type {number}
         */
        this.lon = lon || 0;

        /**
         * Latitude.
         * @public
         * @type {number}
         */
        this.lat = lat || 0;

        /**
         * Height.
         * @public
         * @type {number}<commit_msg>add annotation to LonLat constructor<commit_after>/**
 * @module og/LonLat
 */

'use strict';

import * as mercator from './mercator.js';

const HALF_PI = Math.PI * 0.5;
const INV_PI_BY_180 = 180.0 / Math.PI;
const INV_PI_BY_360 = INV_PI_BY_180 * 2.0;
const PI_BY_360 = Math.PI / 360.0;
const INV_PI_BY_180_HALF_PI = INV_PI_BY_180 * HALF_PI;

/**
 * Represents a geographical point with a certain latitude, longitude and height.
 * @class
 * @param {number} [lon] - Longitude.
 * @param {number} [lat] - Latitude.
 * @param {number} [height] - Height over the surface.
 */
export class LonLat {

    /**
     * @param {number} [lon] 
     * @param {number} [lat] 
     * @param {number} [height] 
     */
    constructor(lon, lat, height) {

        /**
         * Longitude.
         * @public
         * @type {number}
         */
        this.lon = lon || 0;

        /**
         * Latitude.
         * @public
         * @type {number}
         */
        this.lat = lat || 0;

        /**
         * Height.
         * @public
         * @type {number}
{'fraction_non_alphanumeric': 0.14264112903225806, 'fraction_numerical': 0.03225806451612903, 'mean_word_length': 1.9191176470588236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '868409', 'n_tokens_mistral': 760, 'n_tokens_neox': 689, 'n_words': 174}