lerpTo method
Linearly interpolate from this shape to other shape
by an extrapolation factor t
.
Implementation
@override
IGuiShape lerpTo(IGuiShape shape, double t) {
if (shape is GuiShapePolar) {
return GuiShapePolar(
formula: formula,
sampling: lerpDouble(sampling, shape.sampling, t)!.toInt(),
startAngle: GeoAngle(
radian:
lerpDouble(startAngle.radian, shape.startAngle.radian, t)),
clockwise: clockwise,
boxFit: boxFit,
cornerRadius: lerpDouble(cornerRadius, shape.cornerRadius, t)!);
} else {
return GuiShapePolar(
formula: formula,
sampling: sampling,
startAngle: startAngle,
clockwise: clockwise,
boxFit: boxFit,
cornerRadius: cornerRadius);
}
}