Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Combined Transformations | Geometric Transformations
Geometric Modelling with Python
Osio 2. Luku 8
single

single

Challenge: Combined Transformations

Pyyhkäise näyttääksesi valikon

Tehtävä

Pyyhkäise aloittaaksesi koodauksen

Practice combining geometric transformations on a quadrilateral and visualizing the result. You will use translation, rotation, and scaling matrices as a sequence to transform a shape and then plot both the original and transformed quadrilaterals.

  • Convert the list of quadrilateral points to a NumPy array.
  • Add a column of ones to convert to homogeneous coordinates.
  • Initialize the combined transformation matrix as the identity matrix.
  • Multiply the transformation matrices in the given sequence.
  • Apply the combined transformation matrix to all points.
  • Convert back from homogeneous coordinates to regular 2D coordinates.
  • Prepare the original quadrilateral coordinates for plotting.
  • Prepare the transformed quadrilateral coordinates for plotting, also closing the shape.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 8
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt