Math lib is created, converting to quadratic curves is moved there.