CircularNatalHoroscopeJS
CircularNatalHoroscopeJS copied to clipboard
End position for 12th house is wrong.
End position for 12th house ecliptic is not correct.
Should it not equal to the start position of the 1st house ?
I am getting the: a) End position Ecliptic of 12th house equal to the Start Position Horizon of the 1st house, and b) End position Horizon of 12th house equal to the Start Position Ecliptic of the 1st house (ie swapped)
Maybe something to do with the modulo arithmetic in the following function:
utilities/astrology.js
export const constructHouses = (cuspsArray, ascendantDegrees, zodiac, language = 'en') => cuspsArray.map((cuspDegree, index) => {
const houseId = index + 1;
return new House({
ascendantDegrees, eclipticDegreesStart: cuspDegree, eclipticDegreesEnd: cuspsArray[modulo(index + 1, cuspsArray.length + 1)], id: houseId, zodiac, language,
});
});
Namely when calculating eclipticDegreesEnd, I doubt that it should be cuspsArray.length + 1
, rather just cuspsArray.length
Example 1st House

Example corresponding 12th house
