I have a rectangle in .NET in which I draw an ellipse.
I know the width, height and center point of that rectangle.
Of course the center point of the rectangle i
You can use the canonical form in polar coordinates for your problem where the width and height of a rectangle is w and h respectively.
where t is an angle in radians, a is w/2 and b is h/2
So to plot your ellipse, all you have to do is vary t from 0 to 360 degrees (in radians so that's 0 and 2pi) and depending on how you space out t, you get the points on the ellipse.
Since your rectangle is not centered at the origin, you will have to offset it by the coordinates of the center of the rectangle, say, (Cx,Cy)
const double C_x = 10, C_y = 20, w = 40, h = 50;
for(double t = 0; t <=2*pi; t+=0.01)
{
double X = C_x+(w/2)*cos(t);
double Y = C_y+(h/2)*sin(t);
// Do what you want with X & Y here
}