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

single

Challenge: Rotation

Veeg om het menu te tonen

Taak

Veeg om te beginnen met coderen

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 4
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt