Results 1 to 11 of 11
 12112013, 09:18 PM #1Member
 Join Date
 Dec 2013
 Posts
 2
 Rep Power
 0
 12112013, 09:24 PM #2
Re: how to calculate sinus/angle between two points
Basic trigonometry?
How to Ask Questions the Smart Way
Static Void Games  GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum  Come say hello!
 12112013, 09: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, 09:37 PM #4Senior Member
 Join Date
 Jan 2013
 Location
 Northern Virginia, United States
 Posts
 4,561
 Rep Power
 7
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^{TM} Tutorials  SSCCE  Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
 12112013, 09: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  GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum  Come say hello!
 12152013, 10:36 AM #6
 Join Date
 Sep 2008
 Location
 Voorschoten, the Netherlands
 Posts
 13,962
 Blog Entries
 7
 Rep Power
 22
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,
JosI have the stamina of a seal; I lie on the beach instead of running on it.
 12152013, 08:27 PM #7Senior Member
 Join Date
 Jan 2013
 Location
 Northern Virginia, United States
 Posts
 4,561
 Rep Power
 7
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^{TM} Tutorials  SSCCE  Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
 12162013, 09:18 PM #8
 Join Date
 Sep 2008
 Location
 Voorschoten, the Netherlands
 Posts
 13,962
 Blog Entries
 7
 Rep Power
 22
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,
JosI have the stamina of a seal; I lie on the beach instead of running on it.
 12172013, 10:29 AM #9Just a guy
 Join Date
 Jun 2013
 Location
 Netherlands
 Posts
 4,854
 Rep Power
 6
Re: how to calculate sinus/angle between two points
"Syntactic sugar causes cancer of the semicolon."  Alan Perlis
 01092014, 08:17 AM #10Senior Member
 Join Date
 Oct 2012
 Posts
 176
 Rep Power
 3
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, 04:08 PM #11
Re: how to calculate sinus/angle between two points
How to Ask Questions the Smart Way
Static Void Games  GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum  Come say hello!
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, 11: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, 09: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