private static void FillInPhenomenaDetails(ref AASSaturnMoonDetail detail) { double Y1 = 1.108601 * detail.ApparentRectangularCoordinates.Y; double r = Y1 * Y1 + detail.ApparentRectangularCoordinates.X * detail.ApparentRectangularCoordinates.X; if (r < 1) { if (detail.ApparentRectangularCoordinates.Z < 0) { //Satellite nearer to Earth than Saturn, so it must be a transit not an occultation detail.bInTransit = true; detail.bInOccultation = false; } else { detail.bInTransit = false; detail.bInOccultation = true; } } else { detail.bInTransit = false; detail.bInOccultation = false; } }
public AASSaturnMoonsDetails() { Satellite1 = new AASSaturnMoonDetail(); Satellite2 = new AASSaturnMoonDetail(); Satellite3 = new AASSaturnMoonDetail(); Satellite4 = new AASSaturnMoonDetail(); Satellite5 = new AASSaturnMoonDetail(); Satellite6 = new AASSaturnMoonDetail(); Satellite7 = new AASSaturnMoonDetail(); Satellite8 = new AASSaturnMoonDetail(); }
public static void FillInPhenomenaDetails(ref AASSaturnMoonDetail detail) { double Y1 = 1.108601 * detail.ApparentRectangularCoordinates.Y; double r = Y1 * Y1 + detail.ApparentRectangularCoordinates.X * detail.ApparentRectangularCoordinates.X; if (r < 1) { if (detail.ApparentRectangularCoordinates.Z < 0) { //Satellite nearer to Earth than Saturn, so it must be a transit not an occultation detail.bInTransit = true; detail.bInOccultation = false; } else { detail.bInTransit = false; detail.bInOccultation = true; } } else { detail.bInTransit = false; detail.bInOccultation = false; } }