Given an ellipse with defined major and minor axes and a chord, $AB$, that exists on said ellipse how can I calculate the 2 valid $(h,k)$ offset pairs?
For example, with $A = (312, 110)$ and $B = (412, 210)$ is there a procedural way to solve for the possible $h$ and $k$ values in: $$\left(\frac{x-h}{64}\right)^2 + \left(\frac{y-k}{117}\right)^2 = 1$$I'm sure it's possible to solve this by substitution but my end goal is to determine these values programmatically for various points and radii so that doesn't appear to be a viable solution for me.
Thanks for your time.
EDIT:
I'm currently trying to use the generalized forms $$\left(\frac{A_x-h}{r_x}\right)^2+\left(\frac{A_y-k}{r_y}\right)^2=1$$ and $$\left(\frac{B_x-h}{r_x}\right)^2+\left(\frac{B_y-k}{r_y}\right)^2=1$$ to solve for $h=$ (some set of defined variables) and $k=$ (some set of defined variables) but the equations get nasty fairly quickly and I'm not even sure I'm on the right track here.