Forum: Sonstige Fragen zu Delphi
Delphi
by overmoon,
14. Aug 2003
Ohhh, Sorry. Nein, das meinte ich nicht. Mein Code oben war falsch kopiert.
So müsste er korrekt aussehen.
1. Version
ablx := ( ( x - dx ) * cos(alpha) ) - ( ( y - dy ) * sin(alpha) );
ably := ( ( x - dx ) * sin(alpha) ) + ( ( y - dy ) * cos(alpha) );
x := ablx + dx;
y := ably + dy;
Forum: Sonstige Fragen zu Delphi
Delphi
by overmoon,
13. Aug 2003
Warum führt der folgende Code
ablx := ( ( x - dx ) * cos(alpha) ) - ( ( y - dy ) * sin(alpha) );
ably := ( ( x - dx ) * sin(alpha) ) + ( ( y - dy ) * cos(alpha) );
x := ablx + dx;
y := ably + dy;
nicht zu dem gleichen Ergebnis wie dieser: