Skip to main content

Crate xalen_ffi

Crate xalen_ffi 

Source

Structs§

XalenHouses
XalenPosition
XalenPositionFull
Full geocentric position: the six components Swiss Ephemeris returns from swe_calc_ut(..., SEFLG_SPEED) plus a retrograde flag. A NEW struct (not an extension of XalenPosition) so the existing xalen_planet_position ABI is untouched. Speeds are daily motion — degrees/day for longitude/latitude, AU/day for distance. is_retrograde is 1 when the (tropical) longitude rate is negative, else 0.

Functions§

xalen_ayanamsa
Compute ayanamsa value in degrees for a given JD. Returns -1.0 on an invalid ayanamsa_id or a non-finite jd_ut1.
xalen_houses
Compute house cusps. system: 0=WholeSign, 1=Equal, 2=Placidus, 3=Koch, 4=Porphyry, 5=Regiomontanus, 6=Campanus, 7=Morinus, 8=Alcabitius, 9=Topocentric, 10=Sripati, 11=Vehlow, 12=Meridian, 13=Krusinski Returns -2 on invalid system_id.
xalen_init
Initialize the XALEN Ephemeris library. Thread-safe, idempotent.
xalen_planet_position
Compute geocentric tropical longitude of a planet. body: 0=Sun, 1=Moon, 2=Mercury, 3=Venus, 4=Mars, 5=Jupiter, 6=Saturn, 7=Uranus, 8=Neptune, 9=Rahu/MeanNode, 10=TrueNode, 11=Pluto, 12=Chiron, 13=Ketu (Rahu+180)
xalen_planet_position_full
Compute the FULL geocentric position of a planet: the six components Swiss Ephemeris returns from swe_calc_ut(..., SEFLG_SPEED) plus a retrograde flag. This is the high-fidelity counterpart to xalen_planet_position, which fills only longitude/latitude/distance.
xalen_sidereal_longitude
Compute sidereal longitude with specified ayanamsa. ayanamsa_id: 0=Lahiri, 1=KP, 2=Raman, 3=FaganBradley, … 16=LahiriVP285 body_id: 0=Sun .. 12=Chiron, 13=Ketu (Rahu+180) Returns -1.0 on invalid body_id, -2.0 on invalid ayanamsa_id.
xalen_version
Get the XALEN Ephemeris version string.