I'm working on a scientific project about planetary motion. And I need to divide orbit of a planet which is often ellipse to numbers of days. For example, I need to divide earth's orbit into 365 parts but not by the length. I need to divide by its surface into 365 parts, also called sectors. I'm thinking of creating a code that generates random sectors until the surface area is the one we're looking for.
So, I firstly find what each of 365 sectors's area should be by dividing original ellipse area to 365. And then I want to draw random lines from the location of sun(also called focus or foci) to the edge of a ellipse orbit one by one until the area of that sector that is being generated is the one that we calculated earlier.
There's no mathematical way to find surface area of any sector of an ellipse. So the only way to achieve what we're looking for is to calculate it by pixels. And since I'm pretty new to that stuff, I have no idea how to do that.
I really hope you help me. Thanks in advance. And also it would be better if code was in c# otherwise in python.