Ejemplo n.º 1
0
    //
    void CalTInYear()
    {
        float day = m_dayTime.CurrentDayInYear();
        float x   = (day - 2 * m_dayTime.monthInDay()) / m_dayTime.TotalDaysInYear();
        float z   = (x) * 6.28f - 1.68f;

        m_TAverage = (Mathf.Sin(z) + 1) / 2 * m_TR + (m_TA - m_TR / 2);
        m_TRange   = m_TR;
    }