Skip to content

Instantly share code, notes, and snippets.

@jscuba
jscuba / combustion.js
Created May 30, 2022 22:58
vedic astrology combustion calculation
const sunDegree = vargaData.graha.Sy.rashi * 30.0 + vargaData.graha.Sy.degree
...
let dist = Math.abs(sunDegree - (data.rashi * 30.0 + data.degree))
dist = Math.min(dist, 360 - dist)
switch (data.graha) {
case 'Sy':
break
This file has been truncated, but you can view the full file.
[
[
"1900-01-01", {
"phase": 0,
"date": "1900-01-01",
"time": "13:51:59",
"rashi": 9,
"nakshatra": 20,
"speed": 14.4949075,
"degree": 18.277253299999984