X = originX + radiusX * Cos(freqX * T) Y = originY + radiusY * Sin(freqY * T) |

A circle with a radius of 50 at 100,100. X = 100 + 50 * Cos(T) Y = 100 + 50 * Sin(T) Circle has both radii set to 50. |

An ellipse where the radius is 200 in the X and 40 in the Y. It will go around the point 450, 270. X = 450 + 200 * Cos(T) Y = 270 + 40 * Sin(T) |

I want my shape to go from (100, 150) to (400, 380). Find the middle point by averaging the two X points ((400 + 100)/2 = 250) and the two Y points ((380 + 150)/2 = 265). The center is at 250, 265. The radius in the X directions would be 400 - 250 = 150, while the radius in the Y directions would be 380 - 265 = 115. (Just subtract the point location from the origin location to get the radius). X = 250 + 150 * Cos(T) Y = 265 + 115 * Sin(T) |