/** * @fileOverview * Documentation of Sky class built into dimctrl. */ /** * @class * * This class represents a set of sky coordinates. * * If the data was the result of a coordinate transformation, the * corresponding time is stored in addition. A function to convert * to local coordinates is included. * * @param {Number} rightAscension * Right ascension in hours * * @param {Number} declination * Declination in degree * * @example * var sky = new Sky(12, 45); * var local = sky.toLocal(); * * @author Thomas Bretz * */ function Sky() { /** * Right ascension in hours * * @constant * @type Number */ this.ra = rightAscension /** * Declination in degrees * * @constant * @type Number */ this.dec = declination; /** * Time corresponding to ra and dec if they are the result of * a conversion. * * @constant * @type Date */ this.time = undefined; /** * Convert sky coordinates to celestial coordinates. * As observatory location the FACT telescope is assumed. * The conversion is done using libnova's ln_get_hrz_from_equ. * * @param {Date} [time=new Date()] * Reference time for the converstion. * * @type Local * * @returns * A Local object with the converted coordinates and * the conversion time. */ this.toLocal = function() { /* [native code] */ } }