Exemple #1
0
 public override Decoration lerpTo(Decoration b, double t)
 {
     if (b is BoxDecoration decoration)
     {
         return(ShapeDecoration.lerp(this, ShapeDecoration.fromBoxDecoration(decoration), t));
     }
     else if (b == null || b is ShapeDecoration)
     {
         return(ShapeDecoration.lerp(this, b, t));
     }
     return(base.lerpTo(b, t));
 }
Exemple #2
0
 public override Decoration lerpFrom(Decoration a, double t)
 {
     if (a is BoxDecoration decoration)
     {
         return(ShapeDecoration.lerp(ShapeDecoration.fromBoxDecoration(decoration), this, t));
     }
     else if (a == null || a is ShapeDecoration)
     {
         return(ShapeDecoration.lerp(a, this, t));
     }
     return(base.lerpFrom(a, t));
 }
        public override Decoration lerpTo(Decoration b, float t)
        {
            if (b == null)
            {
                return(this.scale(1.0f - t));
            }

            if (b is BoxDecoration boxDecoration)
            {
                return(lerp(this, boxDecoration, t));
            }

            return(base.lerpTo(b, t));
        }
        public override Decoration lerpFrom(Decoration a, float t)
        {
            if (a == null)
            {
                return(this.scale(t));
            }

            if (a is BoxDecoration boxDecoration)
            {
                return(lerp(boxDecoration, this, t));
            }

            return(base.lerpFrom(a, t));
        }
Exemple #5
0
 public virtual Decoration lerpTo(Decoration b, float t)
 {
     return(null);
 }
Exemple #6
0
 public virtual Decoration lerpFrom(Decoration a, float t)
 {
     return(null);
 }
Exemple #7
0
 public virtual Decoration lerpTo(Decoration b, double t)
 {
     return(null);
 }
Exemple #8
0
 public virtual Decoration lerpFrom(Decoration a, double t)
 {
     return(null);
 }