Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Scaling | Geometric Transformations
Geometric Modelling with Python
Sektion 2. Kapitel 6
single

single

Challenge: Scaling

Stryg for at vise menuen

Opgave

Swipe to start coding

Practice your skills with geometric transformations by scaling polygons. Given a polygon represented as a list of (x, y) coordinate tuples and a scaling factor, return a new list of tuples representing the scaled polygon.

  • Multiply each x and y coordinate in the polygon by scale_factor.
  • Construct and return a new list of scaled (x, y) tuples.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 6
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt