When you need to find the bounding rectangle of a quadratic bezier curve you can use the following performant method.
// This method was discovered by Blindman67 and solves by first normalising the control point thereby reducing the algorithm complexity
// x1,y1, x2,y2, x3,y3 Start, Control, and ...