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