AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Punkt in Abhängigkeit eines Winkels berechnen

Ein Thema von implementation · begonnen am 20. Okt 2010 · letzter Beitrag vom 20. Okt 2010
Antwort Antwort
Seite 2 von 2     12   
Blup

Registriert seit: 7. Aug 2008
Ort: Brandenburg
1.429 Beiträge
 
Delphi 10.4 Sydney
 
#11

AW: Punkt in Abhängigkeit eines Winkels berechnen

  Alt 20. Okt 2010, 16:04
Noch mal ganz langsam zum mitschreiben:
Code:
  V1: TPoint = (x = 5, y = 0); // Vektor
  P1: TPoint = (x = 3, y = 4); // Ausgangspunkt
  A: Double = 90;              // Winkel eventuell noch umrechnen
Den Vektor drehen:
Code:
V2.x = V1.x * cos(a) - V1.y * sin(a)
V2.x = 5    * 0      - 0    * 1
V2.x = 0
--------

V2.y = V1.y * cos(a) + v1.x * sin(a);
V2.y = 0    * 0      + 5    * 1
V2.y = 5
--------
Den Punkt verschieben:
Code:
P2.x = P1.x + V2.x
P2.x = 3    + 0
P2.x = 3
========

P2.y = P1.y + V2.y
P2.y = 4    + 5
P2.y = 9
========
  Mit Zitat antworten Zitat
Benutzerbild von implementation
implementation

Registriert seit: 5. Mai 2008
940 Beiträge
 
FreePascal / Lazarus
 
#12

AW: Punkt in Abhängigkeit eines Winkels berechnen

  Alt 20. Okt 2010, 17:15
Seit dem Post von Medium hab' ich's schon verstanden

Danke an alle!
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:26 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