0
$\begingroup$

I am looking for a way to compute the length of any chord parallel to the minor (or major) axis of an ellipse. In all cases I know the lengths of both axes, and the distance between the chord and axis (the right bisector). I can calculate this easily with circles using the length of the right bisector, but am not sure how to adapt my approach to ellipses.

As some background, I am using this to create elliptical discs of random points in a computer graphics visualization. Thank you!

$\endgroup$
2
  • $\begingroup$ How are the chords you want to find the lenghts of specified? $\endgroup$ Jul 22, 2014 at 15:21
  • $\begingroup$ @HenningMakholm Makholm - I'm not sure I understand your question. I know the lengths of the minor and major axes, and want to know how to compute the length of any chord parallel to one of those axes. I also know the distance of the chord from the axis. Does this clarify? $\endgroup$
    – gromiczek
    Jul 22, 2014 at 15:23

1 Answer 1

1
$\begingroup$

If the major and minor axes of the ellipse are $2a$ and $2b$, then the length of the chord parallel to the major axis at a distance of $x$ is $$ 2a\sqrt{1-(x/b)^2} $$ For a chord parallel to the minor axis, interchange $a$ and $b$.

$\endgroup$
1
  • $\begingroup$ Just coded it up and it works great! Thanks so much. $\endgroup$
    – gromiczek
    Jul 22, 2014 at 16:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .