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)); }
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)); }
public virtual Decoration lerpTo(Decoration b, float t) { return(null); }
public virtual Decoration lerpFrom(Decoration a, float t) { return(null); }
public virtual Decoration lerpTo(Decoration b, double t) { return(null); }
public virtual Decoration lerpFrom(Decoration a, double t) { return(null); }