예제 #1
0
        public static List <AstroNakath> ofRasi(AstroRasi rasi)
        {
            int nakIndex = (rasi.CurrentInt / 4) + (rasi.CurrentInt * 2);
            List <AstroNakath> nakathList = new List <AstroNakath>();

            for (int i = nakIndex; i <= nakIndex + 2; i++)
            {
                nakathList.Add(new AstroNakath(i));
            }
            return(nakathList);
        }
예제 #2
0
        protected void InitPlant(double[] planetLocations)
        {
            RasiStart            = 0.0;
            RasiEnd              = 0.0;
            NextTransitDateTimes = new List <DateTime>();
            PlanetLocations      = planetLocations;
            Longitude            = planetLocations[0];
            AjustedLongitude     = Longitude % AstroConsts.RasiLength;
            Rasi        = new AstroRasi((EnumRasi)(1 + (int)(Longitude / AstroConsts.RasiLength)));
            IsReversing = ((planetLocations[3] < 0) && (!AstroPlanet.IsNode(Current)));
            Nakatha     = new AstroNakath(Longitude);
            NavamsaRasi = new AstroRasi(AstroBase.GetNawamsaRasi(Longitude));

            /* target address for 6 position values: longitude, latitude, distance,
             *                     long. speed, lat. speed, dist. speed */
            Latitude         = planetLocations[1];
            Distance         = planetLocations[2];
            SpeedInLongitude = planetLocations[3];
            SpeedInLatitude  = planetLocations[4];
            SpeedInDistance  = planetLocations[5];
        }