Ejemplo n.º 1
0
 public override ShapeBorder lerpTo(ShapeBorder b, float t)
 {
     if (b is CutCornersBorder)
     {
         CutCornersBorder outline = (CutCornersBorder)b;
         return(new CutCornersBorder(
                    borderRadius: BorderRadius.lerp(borderRadius, outline.borderRadius, t),
                    borderSide: BorderSide.lerp(borderSide, outline.borderSide, t),
                    cut: cut,
                    gapPadding: outline.gapPadding
                    ));
     }
     return(base.lerpTo(b, t));
 }
Ejemplo n.º 2
0
 public override ShapeBorder lerpFrom(ShapeBorder a, float t)
 {
     if (a is CutCornersBorder)
     {
         CutCornersBorder outline = (CutCornersBorder)a;
         return(new CutCornersBorder(
                    borderRadius: BorderRadius.lerp(outline.borderRadius, borderRadius, t),
                    borderSide: BorderSide.lerp(outline.borderSide, borderSide, t),
                    cut: cut,
                    gapPadding: outline.gapPadding
                    ));
     }
     return(base.lerpFrom(a, t));
 }