Autor Beitrag
MrFox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 208

WIN 2000 Professional, Ubuntu 5.10
D3 Prof, D7 Pers, D2005 Pers, Java (Eclipse)
BeitragVerfasst: Do 12.01.06 19:05 
Hi Leute,

ich bräuchte eigentlich nur mal eine kleine Mathematik-Auskunft.

Ich habe zwei Punkte im Koordinatensystem (x1,y1 und x2,y2) und will nun, wenn eine imaginäre Linie von punkt1 zu punkt2 gezogen wird, den Winkel in dem die Linie Punkt1 verlässt und die Länge der Linie (Radius des Kreises mit punkt1 als Mittelpunkt und punkt2 auf der Kreislinie) wissen.


Moderiert von user profile iconTino: Topic aus Sonstiges (Delphi) verschoben am Do 12.01.2006 um 18:48

_________________
Das Leben auf der Erde mag zwar teuer sein, aber eine jährliche Rundreise um die Sonne ist gratis mit dabei.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 12.01.06 19:27 
ausblenden Delphi-Quelltext
1:
2:
R := Sqrt(DX*DX + DY*DY);
Ang := ATan(DY/DX);

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
MrFox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 208

WIN 2000 Professional, Ubuntu 5.10
D3 Prof, D7 Pers, D2005 Pers, Java (Eclipse)
BeitragVerfasst: Do 12.01.06 19:41 
...ich verstehe nicht ganz. Wo sind da 2 Punkte? ich sehe nur einen (DX,DY:integer - oder?).

_________________
Das Leben auf der Erde mag zwar teuer sein, aber eine jährliche Rundreise um die Sonne ist gratis mit dabei.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 12.01.06 19:47 
Jup: DX, DY: Integer;

ausblenden Delphi-Quelltext
1:
2:
DX := Delta X = X2 - X1;
DY := Delta Y = Y2 - Y1;


;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
MrFox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 208

WIN 2000 Professional, Ubuntu 5.10
D3 Prof, D7 Pers, D2005 Pers, Java (Eclipse)
BeitragVerfasst: Do 12.01.06 19:50 
Alles klar.

_________________
Das Leben auf der Erde mag zwar teuer sein, aber eine jährliche Rundreise um die Sonne ist gratis mit dabei.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Do 12.01.06 20:44 
a² + b² = c²
Genau das, was wir gestern in der Schule gelernt haben :-)

(Tut aber nix zur Sache ;-))

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)