Пример #1
0
        public void Update(Random i_rand, float i_timeStep)
        {
            if (m_fade.IsOver())
            {
                m_express = null;
            }
            if (m_express == null)
            {
                m_fade.Reset();
                m_value_1 = new Vector3(
                    (float)(i_rand.NextDouble()),
                    (float)(i_rand.NextDouble()),
                    (float)(i_rand.NextDouble()));

                /*m_value_2 = new Vector3(
                 *  (float)(i_rand.NextDouble()),
                 *  (float)(i_rand.NextDouble()),
                 *  (float)(i_rand.NextDouble())); */

                m_value_2 = m_value_1 / 6;
                if (m_3dPlane)
                {
                    m_express = ExperessionMaker.Make(i_rand, 3);
                    m_express = new AnimatedPlane3d(m_express, i_rand);
                }
                else
                {
                    m_express = ExperessionMaker.Make(i_rand, 5);
                }
            }

            m_fade.Advance(i_timeStep);
            m_express.Update(i_timeStep);
        }
Пример #2
0
 public TransformMove(Exprexssion i_first, Exprexssion i_second,
                      float i_deltaX, float i_deltaY,
                      float i_scaleX, float i_scaleY)
 {
     m_first  = i_first;
     m_second = i_second;
     m_deltaX = i_deltaX;
     m_deltaY = i_deltaY;
     m_scaleX = i_scaleX;
     m_scaleY = i_scaleY;
 }
Пример #3
0
 public void Reset()
 {
     m_express = null;
 }
Пример #4
0
 public Quotient(Exprexssion i_first, Exprexssion i_second)
 {
     m_first  = i_first;
     m_second = i_second;
 }
Пример #5
0
 public Product(Exprexssion i_first, Exprexssion i_second)
 {
     m_first  = i_first;
     m_second = i_second;
 }
Пример #6
0
 public Plane3d(Exprexssion i_first, Random i_rand)
 {
     m_first   = i_first;
     m_halfFOV = (float)(i_rand.NextDouble() * (300 * Math.PI / 180.0));
 }
Пример #7
0
 public TransformWave(Exprexssion i_first, Exprexssion i_second)
 {
     m_first  = i_first;
     m_second = i_second;
 }
Пример #8
0
 public Sum(Exprexssion i_first, Exprexssion i_second)
 {
     m_first  = i_first;
     m_second = i_second;
 }
Пример #9
0
 public Atan(Exprexssion i_first)
 {
     m_first = i_first;
 }
Пример #10
0
 public Sin(Exprexssion i_first)
 {
     m_first = i_first;
 }