[Kstars-devel] Proposal for removal
Akarsh Simha
akarshsimha at gmail.com
Thu Jun 11 14:34:32 CEST 2009
Hi Alexey
> One constructor in KSAsteriod class is broken. However it's not used.
> Namely it's
>
> /**Constructor.
> *@note For use by KSPluto, which inherits from this class. Sets the slope
> parameter to -1.
> *@p s the name of the asteroid
> *@p image_file the filename for an image of the asteroid
> *@p JD the Julian Day for the orbital elements
> *@p a the semi-major axis of the asteroid's orbit (AU)
> *@p e the eccentricity of the asteroid's orbit
> *@p i the inclination angle of the asteroid's orbit
> *@p w the argument of the orbit's perihelion
> *@p N the longitude of the orbit's ascending node
> *@p M the mean anomaly for the Julian Day
> *@p H absolute magnitude
> */
> KSAsteroid( const QString &s, const QString &image_file,
> long double JD, double a, double e, dms i, dms w, dms N, dms
> M, double H);
>
> I propose to remove it and force class user to make dubious assumptions by
> themselves.
I don't understand you here.
> Another candidates for removal are getOrbinalElement methods in KSComet and
> KSAsteriod classes.
> bool getOrbitalElements( long double *_JD, double *_a, double *_e,
> dms *_i, dms *_w, dms *_N, dms *_M );
Yes. I remember I wrote this thing as a workaround to be used in the
copy constructor. Feel free to get rid of it.
Regards
Akarsh
More information about the Kstars-devel
mailing list