Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-06-2007, 07:32 PM   PM User | #1
littlemiss
New Coder

 
Join Date: Aug 2007
Posts: 66
Thanks: 2
Thanked 0 Times in 0 Posts
littlemiss is an unknown quantity at this point
Drawing a line between two points avoiding obsticals

hi,

I am making a simple little map type thing in java where the user selects a current location and a desired location, the program should then draw a path to the desired location avoiding the buildings in between.

I have drawn all the buildings using the graphics class on java, and i was planning on joining the points using a poly line, but i am unsure of how to get the line to avoid the buildings, is there maybe a way to detect whether a set point is on a drawn object?

I dont know I have been working on it for a while so my brain is probably fried and its obvous, bu any help would be amazing!


Thanks in advance!
littlemiss is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:10 PM.


Advertisement
Log in to turn off these ads.