public EnumRelationshipTypes RelationshipWith(AstroNakath nakath) { IntCircle nakCycle = new IntCircle(27, this.CurrentInt); Mod nakMod = new Mod(27); int id = nakMod.sub(nakath.CurrentInt, this.CurrentInt); /* var id = Math.Abs((this.CurrentInt < nakath.CurrentInt) ? * 27 - (this.CurrentInt - nakath.CurrentInt) : * nakath.CurrentInt - this.CurrentInt) + 1;*/ return((EnumRelationshipTypes)(((id % 9) == 0) ? 15 : id % 9 + 15)); }
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]; }