Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Drehen (https://www.delphipraxis.net/45871-drehen.html)

hellarazor 13. Mai 2005 11:58


Drehen
 
Hi wie kann ich eine linie dei mit lineto gezeichnet worden ist um 30° Drehen

Delphi_Fanatic 13. Mai 2005 12:04

Re: Drehen
 
So geht das :

Zitat:

gedrehter_x_punkt := round(x + radius * cos(degtorad(winkel)));
gedrehter_y_punkt := round(y + radius * sin(degtorad(winkel)));


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz