Writing a quadratic from vertex and a point