I always just accepted that quaternions are a way to encode a more complex rotation matrix into fewer numbers, that still has similar mathematical properties when you add/multiply them together. I know theres a more ingrained reason behind them but I've never needed to delve that deep.
And what isn't self-explaining about using the 3D projection of a 4 dimensional unit hypersphere, being rotated by two separate 2D perpendicular rotations simultaneously. Easy-peasy...
-edit-
I've been trying to fully grasp quaternions for a few years now and still find them mind-fucky to visualise.
No, temporary variables need to have a number after then so you can keep track. Otherwise you might accidentally set it again later without realizing it's already in use.
I recommend adding a GUID to the end of the variable name, to ensure it doesn't get reused.
Splendid idea, just have to create a hashmap with explanations of what each temp represents! In case someone reads through your code, they can simply write tempMap3.get("temp-<guid>") and receive a string like tempTemperature5
If you use x/y/z for loop variables and they have nothing to do with dimensions, I'm going to figure out where you live and I will nail a dead fish to your doorstep.
View all comments
356
u/[deleted] Jun 06 '20
Programmers: name of variable should be self explaining what variable is for
Also programmers: use i,j,x,y,z variables.