protected static void FillInPhenomenaDetails(ref CAAGalileanMoonDetail detail) { double Y1 = 1.071374 * 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 Jupiter, 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; } }
protected static void FillInPhenomenaDetails(ref CAAGalileanMoonDetail detail) { double Y1 = 1.071374 * 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 Jupiter, 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; } }