Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo ....

da ich leider in Mathemarik oder Geometrie völlig unbedarft bin, brauche ich eure Hilfe :) Ich würde gerne den Winkel einer Linie herausbekommen.

o X2, Y2

|

|

|

| Alpha ???

|

|

|

|

o X1, Y1

Ich weiss leider nicht einmal wie ich die Aufgabe beginnen würde, also kann ich nicht mehr viel hilfreiches dazu sagen. Ich weiss das ich wohl die Winkelfunktionen dafür brauchen werde, alles andere ist für mich ein Buch mit sieben Siegeln :D

Danke schon mal ....

Kurz unter Google gegoogelt:

Kommt ne schöne Formelsammlung Mathematik (in *.pdf) :D

Auf Seite 7 werden die Winkelfunktionen erklärt....:floet:

Tja, *kopfkratz*

also inzwischen habe ich das Problem gelöst und auch eine Funktion dafür gefunden. In C, C++ oder Java heisst sie atan2 und wird wie folgt aufgerufen:

atan2(y2-y1, x2-x1)

Das ganze liefert dann einen Winkel im Bogenmass zurück. In Delphi heisst die Funktion arctan2.

Falls mal jemand die Suchefunktion des Boards nutzt und hier reinschaut. Und das mit der Formelsammlung werde ich mir auf jedenfall mal ansehen :D

Original geschrieben von Green

arctan2.

Ist der Arcus tangens und damit die Umkehrfunktion des Tangens , was wiederum das Verhältnis aus Sinus und Cosinus ist oder sich in einem rechtwinkligen Dreieck als Gegenkathete durch Ankathete berechnet.

PS : Bei 360 Grad drehst du dich einmal im Kreis. Wenn du wiederum nur die Hälfte schaffst, dann landest du bei 180 Grad.

Original geschrieben von Der Kleine

PS : Bei 360 Grad drehst du dich einmal im Kreis. Wenn du wiederum nur die Hälfte schaffst, dann landest du bei 180 Grad.

Oder bist betrunken. Das ist die schönere Alternative.

MVG

need-some-blood

Original geschrieben von Green

atan2(y2-y1, x2-x1)

Das ganze liefert dann einen Winkel im Bogenmass zurück.

"einen Winkel" ist gut, z. B. Java API sagt:

public static double atan2(double_a, double_B)

Converts rectangular coordinates (b,_a) to polar (r,_theta). This method computes the phase theta by computing an arc tangent of a/b in the range of -pi to pi.

Parameters:

a - a double value.

b - a double value.

Returns:

the theta component of the point (r,_theta) in polar coordinates that corresponds to the point (b,_a) in Cartesian coordinates.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.