Hi,

I need to know the sinus or angle between two points (x1,y1) and (x2,y2).

¿someone knows a formulae to calculate this?

Printable View

- 12-11-2013, 09:18 PMveelicushow to calculate sinus/angle between two points
Hi,

I need to know the sinus or angle between two points (x1,y1) and (x2,y2).

¿someone knows a formulae to calculate this? - 12-11-2013, 09:24 PMKevinWorkmanRe: how to calculate sinus/angle between two points
Basic trigonometry?

- 12-11-2013, 09:32 PMveelicusRe: 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

- 12-11-2013, 09:37 PMjim829Re: 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,

Jim - 12-11-2013, 09:38 PMKevinWorkmanRe: how to calculate sinus/angle between two points
Check out the API for the Math class.

Java Platform SE 7 - 12-15-2013, 10:36 AMJosAHRe: 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= (x2-x1, y2-y1) == (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,

Jos - 12-15-2013, 08:27 PMjim829Re: 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,

Jim - 12-16-2013, 09:18 PMJosAHRe: 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,

Jos - 12-17-2013, 10:29 AMgimbal2Re: how to calculate sinus/angle between two points
- 01-09-2014, 08:17 AMDarynRe: 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

- 01-09-2014, 04:08 PMKevinWorkmanRe: how to calculate sinus/angle between two points