wack-a-mole's blog

By wack-a-mole, 13 years ago, In English

Hi,

I'm trying to solve Antenna in the Cinoc Mountains from UVa.

I don't know how to find the intersection between a segment and a cone. Can anyone point me in the right direction?

Thanks.

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
13 years ago, # |
  Vote: I like it +3 Vote: I do not like it

The cone can be nicely intersected with parametrized line: x=x1+t*(x2-x1) . And the segment is parametrized line of form above with t in [0,1]. I hope this helps