Miscellaneous > Programming & Networking
A programming challenge all up in your face.
H_TeXMeX_H:
Orethrius:
Aside from the arc-length bit, it seems to be a rather straightforward CAD application of some sort.
worker201:
--- Quote from: TheQuirk ---What are the other six unknowns?
--- End quote ---
whoa, step back a second. I guess the only thing to solve for is x. x in terms of 7 variables. Probably need to solve it twice, to account for the +/- thing.
My shitty math skills produced:
x = (b + p - q -r)/(1-m);
and
x = (-b -p + q + r)/(1-m);
but that probably isn't right
I suppose that if this equation has a rational answer, then the line does in fact intersect the circle, isn't that what we're getting at here?
As far as the point, one possible use for something like this is as a control mechanism for vector graphics. You might have a matrix that defines a line and a matrix that defines a circle, and want to know where, if at all, they intersect.
pofnlice:
uh oh...2 matrices?
piratePenguin:
--- Quote from: Orethrius ---Aside from the arc-length bit, it seems to be a rather straightforward CAD application of some sort.
--- End quote ---
CAD programs can/should be able to tell you the length of arcs, lines etc.
So you could modify/build a simple CAD program to do this. I was thinking of doing it with SVG and Javascript, but, nah..
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version