What is a translation?
A translation moves a shape or object from one position to another without rotating or resizing it.
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.
What is a loop in programming?
A loop in programming repeats a set of instructions until a condition is met.
How do architects use transformations in design?
Architects use transformations to create 3D models of buildings, adjusting size and position to fit designs.
What is a sprite?
A sprite is a 2D graphic that is used in games or animations to represent characters or objects.
What is a reflection?
A reflection flips a shape over a line, creating a mirror image.
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.
What does a "move" command do in a program?
A "move" command moves an object or sprite by a certain amount on the screen.
How are transformations used in video game character movements?
In video games, character movements (walking, jumping) use transformations like translation, rotation, and scaling.
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.
What is a rotation?
A rotation turns a shape around a fixed point by a certain angle.
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.
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)).
How can you use transformations to make animations smoother?
Transformations like rotation and scaling can make animations look smoother by changing the object incrementally.
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).
What is a dilation?
A dilation changes the size of a shape, either enlarging or reducing it.
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).
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)).
Why are transformations important in computer graphics?
Transformations are used to render 3D objects on a 2D screen by adjusting positions, rotations, and scales.
How would you animate a spinning sprite using rotations in code?
Use rotation transformations, like sprite.rotate(45) repeatedly, to animate a spinning effect.
What is a shearing transformation?
Shearing distorts a shape by shifting one part of it in a particular direction.
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).
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.
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.
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.