Algorithm 1. Start with a 2d circle defined by a radius, centered at the origin, in the xy plane 2. Get 5 points of a circle(r, 0), (-r, 0), (0, r), (0, -r), (0, 0) 3. Transform these 5 points in 3d given the 3 euler angles and the actual center (x, y, z) 4. Convert these points into 2d by projecting it to the canvas, the circle is now and ellipse 5. Get the radiusX and radiusY of the ellipse given the origin and two of the transformed points (compute the distance) 6. Get the angle of this new ellipse by getting the dot product of one of the vectors formed by the origin and one of the points and the x axis 7. We have now defined the ellipse (2d center, radiusX, radiusY, angle) representation
Algorithm