Click here to Skip to main content
15,887,856 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: 2D collision detection between a square and rectangle Pin
venomation8-Mar-10 13:53
venomation8-Mar-10 13:53 
GeneralRe: 2D collision detection between a square and rectangle Pin
venomation8-Mar-10 14:49
venomation8-Mar-10 14:49 
QuestionDesigning Parallel Algorithms Pin
ProtoBytes2-Mar-10 7:43
ProtoBytes2-Mar-10 7:43 
AnswerRe: Designing Parallel Algorithms Pin
Chris Losinger5-Mar-10 8:51
professionalChris Losinger5-Mar-10 8:51 
AnswerRe: Designing Parallel Algorithms [Modified - Spell Checked] [modified] Pin
ProtoBytes5-Mar-10 11:57
ProtoBytes5-Mar-10 11:57 
GeneralRe: Designing Parallel Algorithms [Modified - Spell Checked] Pin
Chris Losinger8-Mar-10 4:27
professionalChris Losinger8-Mar-10 4:27 
AnswerRe: Designing Parallel Algorithms Pin
Fatbuddha 119-Mar-10 2:24
Fatbuddha 119-Mar-10 2:24 
QuestionClosest Polygon Pin
Richard Andrew x6418-Feb-10 17:36
professionalRichard Andrew x6418-Feb-10 17:36 
I have a mapping program. Upon the map are laid polygons that represent rooms in a building.

The program must tell which room a tracked asset is in, AND if the asset is not within any of the rooms, it must tell which is the closest room to its location.

I have already implemented the code that can tell which polygon contains a given point, BUT I can't see how to figure out the closest polygon to a given point if the point is not within any polygon.

In other words, if the point is not within any of the polygons, how do I figure out which polygon it is closest to?
AnswerRe: Closest Polygon Pin
Som Shekhar18-Feb-10 19:00
Som Shekhar18-Feb-10 19:00 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 6:10
professionalRichard Andrew x6419-Feb-10 6:10 
AnswerRe: Closest Polygon Pin
Luc Pattyn18-Feb-10 21:29
sitebuilderLuc Pattyn18-Feb-10 21:29 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 6:11
professionalRichard Andrew x6419-Feb-10 6:11 
AnswerRe: Closest Polygon Pin
ProtoBytes19-Feb-10 4:45
ProtoBytes19-Feb-10 4:45 
GeneralRepost Pin
Luc Pattyn19-Feb-10 4:58
sitebuilderLuc Pattyn19-Feb-10 4:58 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 6:12
professionalRichard Andrew x6419-Feb-10 6:12 
AnswerRe: Closest Polygon [modified] Pin
harold aptroot19-Feb-10 6:47
harold aptroot19-Feb-10 6:47 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 6:55
professionalRichard Andrew x6419-Feb-10 6:55 
GeneralRe: Closest Polygon Pin
harold aptroot19-Feb-10 7:05
harold aptroot19-Feb-10 7:05 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 7:07
professionalRichard Andrew x6419-Feb-10 7:07 
GeneralRe: Closest Polygon Pin
RichardM121-Feb-10 16:17
RichardM121-Feb-10 16:17 
AnswerRe: Closest Polygon Pin
Member 419459315-Apr-10 14:25
Member 419459315-Apr-10 14:25 
AnswerRe: Closest Polygon Pin
Member 419459315-Apr-10 15:12
Member 419459315-Apr-10 15:12 
QuestionLinear-time suffix array construction Pin
harold aptroot18-Feb-10 7:43
harold aptroot18-Feb-10 7:43 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 8:01
sitebuilderLuc Pattyn18-Feb-10 8:01 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 8:24
harold aptroot18-Feb-10 8:24 

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.