Api Fixed
This commit is contained in:
@@ -120,5 +120,12 @@ function sortPlanetsByLongitude(array $planets): array
|
||||
function getSegmentFromLongitude(float $longitude): int
|
||||
{
|
||||
$longitude = normalizeLongitude($longitude);
|
||||
|
||||
// Each zodiac sign = 30°
|
||||
// 0-30 → 1
|
||||
// 30-60 → 2
|
||||
// ...
|
||||
// 330-360 → 12
|
||||
|
||||
return ((int) floor($longitude / 30)) + 1;
|
||||
}
|
||||
Reference in New Issue
Block a user