Exemple #1
0
 public void Copy(ElementTransitionInfo info)
 {
     IsHidden = info.IsHidden;
     Xr       = info.Xr;
     Yr       = info.Yr;
     Wr       = info.Wr;
     Hr       = info.Hr;
     Angle    = info.Angle;
     Alpha    = info.Alpha;
 }
Exemple #2
0
        public static ElementTransitionInfo operator +(ElementTransitionInfo ti1, ElementTransitionInfo ti2)
        {
            ElementTransitionInfo ti = new ElementTransitionInfo();

            ti.IsHidden = ti2.IsHidden;
            ti.Xr       = ti1.Xr + ti2.Xr;
            ti.Yr       = ti1.Yr + ti2.Yr;
            ti.Wr       = ti1.Wr * ti2.Wr;
            ti.Hr       = ti1.Hr * ti2.Hr;
            ti.Alpha    = ti1.Alpha + ti2.Alpha;
            CommonMethods.ClampValue(ref ti.Alpha, 0, 1);
            ti.Angle = ti1.Angle + ti2.Angle;
            CommonMethods.ClampValue(ref ti.Alpha, 0, 360);
            return(ti);
        }