Difference between revisions of "Advanced C++ Programming Tutorial 4"

From Chilipedia
Jump to: navigation, search
(Homework)
(Links)
Line 26: Line 26:
 
== Links ==
 
== Links ==
 
* [https://github.com/planetchili/advmath GitHub Repo (advmath)]
 
* [https://github.com/planetchili/advmath GitHub Repo (advmath)]
* Note that the code for this tutorial can be found on the <starfield> branch of the repo <span style="color:red">not in <master></span>
+
* Note that the code for this tutorial can be found on the <span style="color:green"><starfield></span> branch of the repo <span style="color:red">not in <master></span>
  
 
== Homework ==
 
== Homework ==

Revision as of 11:00, 1 August 2018

Why don't you sit on this and rotate? Oh you don't know how? Well allow me to elucidate. Srsly tho, rotation math is pretty damn important shit, so pay attention.

Topics

Part 1

  • Angles, degrees, radians, and π
  • Sine, cosine, and the unit circle
  • Arcsin, arccos
  • SOH-CAH-(TOA)

Part 2

  • Derivation of rotation formula: arcsin/arccos
  • Angle sum theorem (trig identity)
  • Derivation of rotation formula: angle sum theorem
  • Derivation of rotation formula: vector derivation
  • Using rotation to solve A3 homework (rotate to get plank normal)

Part 3

  • Vec2 rotation functions
  • Basic rotation of model
  • Implementing rotation into Drawable pipeline
  • Optimizing pipeline for rotation

Video Timestamp Index

Links

  • GitHub Repo (advmath)
  • Note that the code for this tutorial can be found on the <starfield> branch of the repo not in <master>

Homework

Implement rotation of the camera in the world.

See also