static CubicEase make(double x1, double y1, double x2, double y2) { if (x1 == y1 && x2 == y2) { return LinearCubicEase(); } else { return Cubic(x1, y1, x2, y2); } }