Determine which house a given ecliptic position occupies
Returns the house number (1-12) that contains the specified position. Houses follow the natural order of the zodiac.
Ecliptic longitude in degrees (0-360)
Array of 12 house cusps in degrees
House number (1-12)
const cusps = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330];getHousePosition(15, cusps) // 1 (between cusp 1 and cusp 2)getHousePosition(45, cusps) // 2 (between cusp 2 and cusp 3)getHousePosition(350, cusps) // 12 (between cusp 12 and cusp 1) Copy
const cusps = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330];getHousePosition(15, cusps) // 1 (between cusp 1 and cusp 2)getHousePosition(45, cusps) // 2 (between cusp 2 and cusp 3)getHousePosition(350, cusps) // 12 (between cusp 12 and cusp 1)
Determine which house a given ecliptic position occupies
Returns the house number (1-12) that contains the specified position. Houses follow the natural order of the zodiac.