solving origin of a vectors
I have two endpoints (xa,ya) and (xb,yb) of two vectors, respectively a and b, originating from a same point (xo, yo). Also, I know that |a|=|b|+s, where s is a constant. I tried to compute the origin (xo, yo) but seem t开发者_JAVA百科o fail at some point. How to solve this?
In the general case, there isn't a unique solution. You need another constraint.
Essentially you have two line segments and you know the position of one end for each and their length difference. This easily results in an infinite amount of points where the ends could meet, and therefore doesn't uniquely identify your "origin".
The origin will be somewhere on a hyperbolic surface. The points a and b are the foci.
精彩评论