Types of Transformations
Coordinate Systems
Code Transformations
Real-World Applications
Fun with Coding and Transformations
100

What is a translation?

A translation moves a shape or object from one position to another without rotating or resizing it.

100

What is the origin in a coordinate system?

The origin is the point (0, 0) on a coordinate plane where the x-axis and y-axis intersect.

100

What is a loop in programming?

A loop in programming repeats a set of instructions until a condition is met.

100

How do architects use transformations in design?

Architects use transformations to create 3D models of buildings, adjusting size and position to fit designs.

100

What is a sprite?

A sprite is a 2D graphic that is used in games or animations to represent characters or objects.

200

What is a reflection?

A reflection flips a shape over a line, creating a mirror image.

200

What are the x and y axes?

The x-axis is the horizontal line, and the y-axis is the vertical line on a coordinate plane.

200

What does a "move" command do in a program?

A "move" command moves an object or sprite by a certain amount on the screen.

200

How are transformations used in video game character movements?

In video games, character movements (walking, jumping) use transformations like translation, rotation, and scaling.

200

How do you move a sprite left or right in code?

Use code like sprite.x += 10 to move a sprite to the right or sprite.x -= 10 to move it left.

300

What is a rotation?

A rotation turns a shape around a fixed point by a certain angle.

300

What is a point (x, y)?

A point is represented as (x, y) where x is the horizontal position and y is the vertical position.

300

How can we translate a sprite using code?

To translate a sprite, you change its x and y position using code (e.g., sprite.move(x, y)).

300

How can you use transformations to make animations smoother?

Transformations like rotation and scaling can make animations look smoother by changing the object incrementally.

300

How can you make a sprite jump using a transformation?

Use a combination of vertical translation and gravity to make a sprite jump (e.g., sprite.y -= 10 then sprite.y += 10).

400

What is a dilation?

A dilation changes the size of a shape, either enlarging or reducing it.

400

How do you reflect a point over the x-axis?

To reflect a point over the x-axis, change the sign of the y-coordinate: (x, y) → (x, -y).

400

How can we rotate a sprite using code?

To rotate a sprite, you change its angle or direction in code (e.g., sprite.rotate(90)).

400

Why are transformations important in computer graphics?

Transformations are used to render 3D objects on a 2D screen by adjusting positions, rotations, and scales.

400

How would you animate a spinning sprite using rotations in code?

Use rotation transformations, like sprite.rotate(45) repeatedly, to animate a spinning effect.

500

What is a shearing transformation?

Shearing distorts a shape by shifting one part of it in a particular direction.

500

How do you rotate a point 90 degrees clockwise?

To rotate a point 90° clockwise, switch the x and y coordinates and change the sign of the new y: (x, y) → (y, -x).

500

How can you use variables to change the transformation of a sprite in code?

Variables can store values like position, angle, or scale, allowing transformations to change based on user input or other factors.

500

How do apps like Google Maps use transformations for navigation?

Google Maps uses transformations to adjust the view (zoom, rotate) based on user input or location.

500

Can you use transformations to create a maze game? How?

Yes! Use translations and rotations to move a player through a maze, detecting walls and boundaries with collision detection.

M
e
n
u