Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Rotation | Geometric Transformations
Geometric Modelling with Python
Abschnitt 2. Kapitel 4
single

single

Challenge: Rotation

Swipe um das Menü anzuzeigen

Aufgabe

Wischen, um mit dem Codieren zu beginnen

Practice applying geometric transformations by rotating a triangle by 90 degrees. Use the rotate_point function to rotate each vertex of the triangle.

  • The rotate_triangle function must take a list of three points and an angle in degrees.
  • For each point in the triangle, use rotate_point to find its new position after rotation.
  • Collect the rotated points into a new list and return it.
  • After rotating the triangle, use plot_triangles to display both the original and rotated triangles.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 4
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt