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