Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2004

Tip: Looking for answers? Try searching our database.

finding point on a map

Thread view: 
Lou Lipnickey - 13 May 2004 19:28 GMT
I am trying to calculate the location of a point in a plane given a
start point, a distance and an angle. I can't remember enough geometry!

So if I have a point x,y and a distance of d and an angle of a where:
x,y = 100,100
d = 20
a = 30 degrees

can anyone provide a formula to find the end x,y?

Thanks in advance - Lou
Andrew Thompson - 13 May 2004 19:38 GMT
> I can't remember enough geometry!

So you ask on a Java GUI group?!

Why not ask on (or better still,
search first) a geometry forum,
like, ferinstance..
<http://google.com/groups?group=geometry.forum>

Not that hard now, is it?

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Lou Lipnickey - 13 May 2004 20:04 GMT
Semi related, but thanks for the pointer

>>I can't remember enough geometry!
>
[quoted text clipped - 6 lines]
>
> Not that hard now, is it?
Roedy Green - 13 May 2004 20:47 GMT
>So if I have a point x,y and a distance of d and an angle of a where:
>x,y = 100,100
>d = 20
>a = 30 degrees

You can use AffineTransform if you don't want to refresh your trig.

to convert cartesian <-> to polar co-ordinates see
http://mindprod.com/jgloss/coordinates.html
and
http://mindprod.com/jgloss/polar.html
and
http://mindprod.com/jgloss/affinetransform.html

That last entry got considerable new work a few days ago.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Sergio - 14 May 2004 19:35 GMT
> I am trying to calculate the location of a point in a plane given a
> start point, a distance and an angle. I can't remember enough geometry!
[quoted text clipped - 7 lines]
>
> Thanks in advance - Lou

x2=x+d*cos(a)
y2=y+d*sin(a)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.