How to find the center, foci and vertices of an ellipse