Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Rotation | Geometric Transformations
Geometric Modelling with Python
Секція 2. Розділ 4
single

single

Challenge: Rotation

Свайпніть щоб показати меню

Завдання

Проведіть, щоб почати кодувати

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 4
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt