Results 1 to 11 of 11
 12112013, 08:18 PM #1Member
 Join Date
 Dec 2013
 Posts
 2
 Rep Power
 0
 12112013, 08:24 PM #2
Re: how to calculate sinus/angle between two points
Basic trigonometry?
How to Ask Questions the Smart Way
Static Void Games  Play indie games, learn from game tutorials and source code, upload your own games!
 12112013, 08:32 PM #3Member
 Join Date
 Dec 2013
 Posts
 2
 Rep Power
 0
Re: how to calculate sinus/angle between two points
yes, but i don't know if there is a fast way using any lib to get the solution
 12112013, 08:37 PM #4Senior Member
 Join Date
 Jan 2013
 Location
 Northern Virginia, United States
 Posts
 3,610
 Rep Power
 5
Re: how to calculate sinus/angle between two points
I am not certain what you mean. Two points constitute a straight line. So what angle are you talking about?
Regards,
JimThe Java™ Tutorial  SSCCE  Java Naming Conventions
Poor planning our your part does not constitute an emergency on my part.
 12112013, 08:38 PM #5
Re: how to calculate sinus/angle between two points
Check out the API for the Math class.
Java Platform SE 7How to Ask Questions the Smart Way
Static Void Games  Play indie games, learn from game tutorials and source code, upload your own games!
 12152013, 09:36 AM #6
 Join Date
 Sep 2008
 Location
 Voorschoten, the Netherlands
 Posts
 13,524
 Blog Entries
 7
 Rep Power
 20
Re: how to calculate sinus/angle between two points
Sigh, don't they teach basic math 101 anymore? Subtract, say P1 from both P1 and P2; you get O= (0, 0) and X= (x2x1, y2y1) == (x, y). The hypothenuse of the triangle is h= sqrt(x*x+y*y); the sine is y/h, the cosine is x/h and the tangent is y/x. People nowadays first start banging their keyboards without thinking and then they are stuck ...
kind regards,
Joscenosillicaphobia: the fear for an empty beer glass
 12152013, 07:27 PM #7Senior Member
 Join Date
 Jan 2013
 Location
 Northern Virginia, United States
 Posts
 3,610
 Rep Power
 5
Re: how to calculate sinus/angle between two points
I would agree if the OP had said that was the hypotenuse. But one could also assume it was one of the other sides. So the question as stated makes no sense.
Regards,
JimThe Java™ Tutorial  SSCCE  Java Naming Conventions
Poor planning our your part does not constitute an emergency on my part.
 12162013, 08:18 PM #8
 Join Date
 Sep 2008
 Location
 Voorschoten, the Netherlands
 Posts
 13,524
 Blog Entries
 7
 Rep Power
 20
Re: how to calculate sinus/angle between two points
True; I have been lecturing for a short while (at a university by Jove) and I learned to complete, reinterpret and understand poorly worded questions that didn't make sense at all, The communication the other way around needs to be compact, exact and to the point at max and delivered prompty, otherwise the lecturer were sloppy, was an *sshole etc. etc. etc. ;)
kind regards,
Joscenosillicaphobia: the fear for an empty beer glass
 12172013, 09:29 AM #9Just a guy
 Join Date
 Jun 2013
 Location
 Netherlands
 Posts
 4,016
 Rep Power
 6
Re: how to calculate sinus/angle between two points
"Syntactic sugar causes cancer of the semicolon."  Alan Perlis
 01092014, 07:17 AM #10Senior Member
 Join Date
 Oct 2012
 Posts
 176
 Rep Power
 2
Re: how to calculate sinus/angle between two points
Hang on hes talking about hypotneus? How do you see that i figuered he was trying to do slope
With the right know how, anything is possible
 01092014, 03:08 PM #11
Re: how to calculate sinus/angle between two points
How to Ask Questions the Smart Way
Static Void Games  Play indie games, learn from game tutorials and source code, upload your own games!
Similar Threads

Help with a program that asks a user for points and draws a line from said points
By blackbirdfly in forum Java AppletsReplies: 1Last Post: 11062013, 10:14 AM 
[jFreeChart] Converting screenpoints to points, which are relative to the axis
By fyaxic in forum AWT / SwingReplies: 1Last Post: 08112011, 10:46 AM 
calculating the angle between 3 points
By imorio in forum New To JavaReplies: 2Last Post: 12242010, 08:49 AM 
Angle to Radians and Calculate the Cosine
By coldplay7588 in forum New To JavaReplies: 7Last Post: 09262010, 08:12 PM 
Calculate X and Y given starting angle and distance
By nidhirastogi in forum Java 2DReplies: 5Last Post: 08182008, 10:24 PM
Bookmarks