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 GuiShapeStar) {
return GuiShapeStar(
sides: lerpDouble(sides, shape.sides, t)!.toInt(),
startAngle: GeoAngle(
radian:
lerpDouble(startAngle.radian, shape.startAngle.radian, t)),
indentSideFactor:
lerpDouble(indentSideFactor, shape.indentSideFactor, t)!,
clockwise: clockwise,
boxFit: boxFit,
cornerRadius: lerpDouble(cornerRadius, shape.cornerRadius, t)!);
} else {
return GuiShapeStar(
sides: sides,
startAngle: startAngle,
indentSideFactor: indentSideFactor,
clockwise: clockwise,
boxFit: boxFit,
cornerRadius: cornerRadius);
}
}