LordZenzo Well-Known Member Licensed User Longtime User Apr 7, 2016 #1 scusate ma non mi viene avendo due punti vorrei l'angolo di direzione sto provando cosi x1=x1-x ' cateto su x y1=y1-y ' cateto su y a=Sqrt((x1*x1)+(y1*y1)) b=(x1/a) c=180*(ASin(b)/3.14159) a dovrebbe essere la ipotenusa del triangolo rettangolo b dovrebbe essere il seno dell'angolo in radianti ? o in centesimali ? c dovrebbe portarlo in gradi da radianti Last edited: Apr 7, 2016
scusate ma non mi viene avendo due punti vorrei l'angolo di direzione sto provando cosi x1=x1-x ' cateto su x y1=y1-y ' cateto su y a=Sqrt((x1*x1)+(y1*y1)) b=(x1/a) c=180*(ASin(b)/3.14159) a dovrebbe essere la ipotenusa del triangolo rettangolo b dovrebbe essere il seno dell'angolo in radianti ? o in centesimali ? c dovrebbe portarlo in gradi da radianti
LucaMs Expert Licensed User Longtime User Apr 7, 2016 #2 Ecchevvordì? Avendo "due punti" come fai ad avere un "angolo di direzione" o un triangolo? Disegnino, please
Ecchevvordì? Avendo "due punti" come fai ad avere un "angolo di direzione" o un triangolo? Disegnino, please
LordZenzo Well-Known Member Licensed User Longtime User Apr 7, 2016 #3 te lo do un po complicato http://www.geometripd.it/corsi/praticanti2015/topografia/TRIGONOMETRIA E COORDINATE.pdf pagina 8 mi pare ma ho scoperto che la libreria math a la funzione Math.GetTouchAngle(x,y,x1,y1) che e' quello che mi serve... senza complicarsi la vita..
te lo do un po complicato http://www.geometripd.it/corsi/praticanti2015/topografia/TRIGONOMETRIA E COORDINATE.pdf pagina 8 mi pare ma ho scoperto che la libreria math a la funzione Math.GetTouchAngle(x,y,x1,y1) che e' quello che mi serve... senza complicarsi la vita..
LordZenzo Well-Known Member Licensed User Longtime User Apr 7, 2016 #4 il triangolo viene tra gli assi e la retta che unisce i due punti
klaus Expert Licensed User Longtime User Apr 7, 2016 #5 If you have two points, with x1 y1 and x2 y2 as coordinates, the angle between them is: AngleRad = ATan2(y2 - y1, x2 - x1) AngleDeg = ATan2D(y2 - y1, x2 - x1)
If you have two points, with x1 y1 and x2 y2 as coordinates, the angle between them is: AngleRad = ATan2(y2 - y1, x2 - x1) AngleDeg = ATan2D(y2 - y1, x2 - x1)
LordZenzo Well-Known Member Licensed User Longtime User Apr 7, 2016 #6 klaus said: If you have two points, with x1 y1 and x2 y2 as coordinates, the angle between them is: AngleRad = ATan2(y2 - y1, x2 - x1) AngleDeg = ATan2D(y2 - y1, x2 - x1) Click to expand... grazie la funzione Math.GetTouchAngle(x,y,x1,y1) deve essere corretta con un -90
klaus said: If you have two points, with x1 y1 and x2 y2 as coordinates, the angle between them is: AngleRad = ATan2(y2 - y1, x2 - x1) AngleDeg = ATan2D(y2 - y1, x2 - x1) Click to expand... grazie la funzione Math.GetTouchAngle(x,y,x1,y1) deve essere corretta con un -90
klaus Expert Licensed User Longtime User Apr 7, 2016 #7 The angle definition of ATan2 is: Last edited: Apr 7, 2016