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.

Rotation eines Objektes in Java3d

Empfohlene Antworten

Veröffentlicht

Hallo

Ich habe ein mathematisches Problem:

Ich definiere eine Drehung um die X-Achse und dann eine Drehung

um die Y-Achse.

Danach multipliziere ich die beiden Drehungen.


Transform3D rotate = new Transform3D();

Transform3D tmpRotate = new Transform3D();


rotate.rotX(Math.PI/4.0d);

tmpRotate.rotY(Math.PI/4.0d);

[COLOR=red]rotate.mul(tmpRotate);[/COLOR]

ICh hatte erwartet, wenn ich die Multiplikation genau anders rum mache, also:

[COLOR=red]tmpRotate.mul(rotate);[/COLOR]

würde ich das selbe Ergebnis bekommen!

Das ist aber nicht so - kann mir jemand erklären, was da vorgeht?

Ich will wissen, was er mathematisch macht!?[

  • 4 Jahre später...

Drehungen und Transformationen werden mathematisch durch Matrizenmultiplikationen erzeugt. Die Reihenfolge einer Matrizenmultiplikation ist NICHT vertauschbar (ausser bei symmetrischen Matrizen, d.h. welche, die sich an der Diagonale spiegeln lassen), kann man an kleinen 2x2 Matrizen selber ausprobieren...

...des weiteren gilt z.B. bei einer 2d Rotation in der x,y-Ebene:

( Drehung um die z-Achse erfolgt mit der Matrix )

+cos (alpha) +sin(alpha) 0

-sin(alpha) +cos(alpha) 0

0 0 1

...wie man sieht, ist die Matrix nicht symmetrisch...!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.