Click here to Skip to main content
15,890,973 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Quick Hit-Testing Pin
Luc Pattyn19-Jun-07 6:53
sitebuilderLuc Pattyn19-Jun-07 6:53 
GeneralRe: Quick Hit-Testing Pin
Ri Qen-Sin19-Jun-07 13:30
Ri Qen-Sin19-Jun-07 13:30 
GeneralRe: Quick Hit-Testing Pin
cp987619-Jun-07 18:39
cp987619-Jun-07 18:39 
GeneralRe: Quick Hit-Testing Pin
Luc Pattyn20-Jun-07 1:45
sitebuilderLuc Pattyn20-Jun-07 1:45 
GeneralRe: Quick Hit-Testing Pin
Ri Qen-Sin20-Jun-07 2:59
Ri Qen-Sin20-Jun-07 2:59 
GeneralRe: Quick Hit-Testing Pin
Luc Pattyn20-Jun-07 3:56
sitebuilderLuc Pattyn20-Jun-07 3:56 
GeneralRe: Quick Hit-Testing Pin
Ri Qen-Sin20-Jun-07 14:25
Ri Qen-Sin20-Jun-07 14:25 
GeneralRe: Quick Hit-Testing Pin
Ri Qen-Sin20-Jun-07 2:50
Ri Qen-Sin20-Jun-07 2:50 
Thanks. I'm guessing this goes back to the "l × c"* approach — comparing every line with every circle. If that turns out to be faster, I'll implement that too (you gotta love interfaces and virtual methods!).

By the way, everything is done using the Double type. (It's the type that Windows Presentation Foundation works with.)

* Represents the number of comparisons that needs to be made based on the number of lines and circles. The number of lines never exceeds the number of circles, so a lower bound would be 0 tests for no activity, and Math.Pow(c, 2) for the upper bound (when everyone is firing their uzis at once).



ROFLOLMFAO

AnswerRe: Quick Hit-Testing Pin
Stephen Hewitt20-Jun-07 14:13
Stephen Hewitt20-Jun-07 14:13 
GeneralRe: Quick Hit-Testing Pin
cp987620-Jun-07 17:09
cp987620-Jun-07 17:09 
GeneralRe: Quick Hit-Testing Pin
Stephen Hewitt21-Jun-07 16:30
Stephen Hewitt21-Jun-07 16:30 
GeneralRe: Quick Hit-Testing Pin
cp987623-Jun-07 18:34
cp987623-Jun-07 18:34 
AnswerRe: Quick Hit-Testing Pin
Roy Heil2-Jul-07 3:43
professionalRoy Heil2-Jul-07 3:43 
GeneralRe: Quick Hit-Testing: The "Look and See" Method Pin
Luc Pattyn22-Jun-07 7:00
sitebuilderLuc Pattyn22-Jun-07 7:00 
Questionrunge Kutta Pin
Noharyiasa18-Jun-07 23:46
Noharyiasa18-Jun-07 23:46 
AnswerRe: runge Kutta Pin
Luc Pattyn19-Jun-07 0:11
sitebuilderLuc Pattyn19-Jun-07 0:11 
GeneralRe: runge Kutta Pin
Noharyiasa19-Jun-07 0:21
Noharyiasa19-Jun-07 0:21 
GeneralRe: runge Kutta Pin
Luc Pattyn19-Jun-07 1:02
sitebuilderLuc Pattyn19-Jun-07 1:02 
GeneralRe: runge Kutta Pin
Noharyiasa19-Jun-07 1:24
Noharyiasa19-Jun-07 1:24 
GeneralRe: runge Kutta Pin
Jeffrey Walton5-Jul-07 16:39
Jeffrey Walton5-Jul-07 16:39 
GeneralRe: runge Kutta Pin
Luc Pattyn5-Jul-07 23:28
sitebuilderLuc Pattyn5-Jul-07 23:28 
AnswerRe: runge Kutta Pin
Nathan Addy21-Jun-07 14:39
Nathan Addy21-Jun-07 14:39 
GeneralRe: runge Kutta Pin
Noharyiasa22-Jun-07 5:14
Noharyiasa22-Jun-07 5:14 
Questiontimetable construction Pin
Prinz Ryoiji18-Jun-07 14:54
Prinz Ryoiji18-Jun-07 14:54 
AnswerRe: timetable construction Pin
Paul Conrad21-Jul-07 18:04
professionalPaul Conrad21-Jul-07 18:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.