Ejemplo n.º 1
0
    protected static void FillInPhenomenaDetails(ref CAASaturnMoonDetail 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;
        }
    }
Ejemplo n.º 2
0
    protected static void FillInPhenomenaDetails(ref CAASaturnMoonDetail 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;
        }
    }