Class: When::Ephemeris::Star::Fixed
- Inherits:
-
When::Ephemeris::Star
- Object
- BasicTypes::Object
- CelestialObject
- When::Ephemeris::Star
- When::Ephemeris::Star::Fixed
- Defined in:
- lib/when_exe/ephemeris.rb
Overview
恒星
Constant Summary collapse
- Coef =
100.0 / (3600*1000)
Constants included from When::Ephemeris
AU, AcS, BCENT, C0, CIRCLE, COS, COSL, COSLT, COST, DAY, DEG, EPOCH1800, EPOCH1900, EPOCH1975, EPOCH2000, FARAWAY, JCENT, JYEAR, Jupiter, LIN, Mars, Mercury, Neptune, PSEC, Pluto, When::Ephemeris::SIN, When::Ephemeris::SINL, When::Ephemeris::SINLT, When::Ephemeris::SINT, When::Ephemeris::Saturn, Uranus, Venus
Constants included from Namespace
Namespace::DC, Namespace::DCQ, Namespace::DCT, Namespace::FOAF, Namespace::OWL, Namespace::RDF, Namespace::RDFC, Namespace::RDFS, Namespace::RSS, Namespace::XSD
Instance Attribute Summary
Attributes inherited from When::Ephemeris::Star
#delta_phi, #delta_radius, #delta_theta, #parallax, #phi, #t0, #theta
Attributes inherited from CelestialObject
Attributes inherited from BasicTypes::Object
Attributes included from Parts::Resource
#child, #keys, #locale, #namespace
Instance Method Summary collapse
-
#_coords(t) ⇒ When::Ephemeris::Coords
天体位置 (黄道座標).
Methods inherited from When::Ephemeris::Star
#apparent_luminosity, #apparent_radius, #bayer_name
Methods inherited from CelestialObject
Methods included from When::Ephemeris
_adjust, _rot, _to_p2, _to_p3, _to_r3, acos, asin, cosc, cosd, delta_e, delta_p, julian_century_from_2000, julian_year_from_1975, obl, polynomial, root, sinc, sind, tanc, tand, trigonometric
Methods included from Parts::Resource
#[], #^, _instance, _setup_, _setup_info, base_uri, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #parent, #registered?, root_dir
Methods included from Parts::Resource::Pool
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class When::Parts::Resource
Instance Method Details
#_coords(t) ⇒ When::Ephemeris::Coords
天体位置 (黄道座標)
884 885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/when_exe/ephemeris.rb', line 884 def _coords(t) t = +t c2000 = julian_century_from_2000(t) c1900 = (@t0-1900.0)/100.0 dt = (t-(EPOCH1900-0.68648354))/BCENT - c1900 Coords.polar( (@phi + dt * @delta_phi * Coef) / 360, (@theta + dt * @delta_theta * Coef) / 360, @distance - dt * @delta_radius / (AU/(BCENT*86400.0))). precession(dt, c1900). rotate_x(-obl(c2000)). nutation(c2000) end |