2024-Q4-AI 2. Matrix transformations, Linear algebra, OOP

  Рет қаралды 369

YellowRobot.XYZ

YellowRobot.XYZ

Күн бұрын

Whiteboard:
whiteboard.fi/...
Dot product:
www.mathsisfun...
Very good materials on linear algebra and other math topics:
www.3blue1brow...
2.2. Scalar multiplication of matrices
1D example:
share.yellowrob...
2D example:
share.yellowrob...
Dot product examples:
www.studypug.c...
Template:
share.yellowro...
2.3. Implement angle change for player
Use the template provided in task 2.3 with the dot product implementation from task 2.1.
Use the provided source code template and follow the materials given in class.
share.yellowro...
Implement the rotation matrix to make the spaceship rotate around its axis
share.yellowrob...
Implement angle change with arrow keys, complete all todos, submit the source code.
2.4. Implement the translation matrix
Use the template from task 2.3 as a basis, with the dot product implementation from task 2.1.
Implement `translation_mat`. Ensure that the Player is translated in such a way that it rotates around its own axis instead of the bottom line. Implement the translation of objects using `translation_mat`. It is mandatory to combine rotation and translation into a single composite matrix self.C!
Equation:
share.yellowrob...
Submit the code as a file and attach a screenshot.
2.5. Implement scaling matrix for Player
Use the template from task 2.3 with dot product implementation from task 2.1.
Implement the scaling matrix and compress the Player so it's not as wide (include the transformation in the self.C matrix).
share.yellowrob...
Submit the code as a file and attach a screenshot.
2.6. Implement a circle for a planet
Circle drawing algorithm:
www.mathopenre...
Equation, using delta theta from 0 to 360 degrees
share.yellowrob...
----
2.7. Implement L2 normalization
Implement `l2_normalize_vec2d` so that the direction `self.dir` has a unit vector length.
Equation:
share.yellowrob...
2.8. Implement the Gravity Equation
Use the template from Task 2.3, incorporating the dot product implementation from Task 2.1.
Implement a simulated gravity equation between planets and the player. Use the "game physics" version:
share.yellowrob...
Submit the code as a file and include a screenshot.
2.9. Complete the Game
Using the code acquired up to section 2.7, implement the following changes:
1. Implement the Skew matrix and use it to randomly distort the asteroids (share.yellowrob....
2. Implement a simulated gravity equation between planets and the player. Use the "game physics" version:
share.yellowrob....
3. Implement collision detection. Award points for asteroids shot down with the rocket. However, if the player collides with planets or asteroids, the game is lost.
4. Implement planets where the geometry is drawn using the Mid-Point Circle Drawing Algorithm. Points can be generated per quadrant.
Equation:
share.yellowrob...
eps = 0.5
radius = 2

Пікірлер
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 6 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,1 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 83 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 48 МЛН
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 320 М.
Programmers Need More Math
5:17
ForrestKnight
Рет қаралды 37 М.
Rotate Matrix/Image by 90 Degrees | Brute - Optimal
17:47
take U forward
Рет қаралды 231 М.
Linear Algebra 9 | Inner Product and Norm
12:23
The Bright Side of Mathematics
Рет қаралды 33 М.
2 Car Brands That are Going Bankrupt (Do Not Buy)
11:00
Scotty Kilmer
Рет қаралды 229 М.
The Matrix Transpose: Visual Intuition
26:01
Sam Levey
Рет қаралды 28 М.
Math News: The Bunkbed conjecture was just debunked!!!!!!!
14:59
Dr. Trefor Bazett
Рет қаралды 160 М.
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 6 МЛН