index

means: right justify


GraphicPlugs::GraphicPlugs(vector&all) { V=&all; 
  F(new      camUI); // camera 
  F(new     trakUI); // state settings 
  F(new settingsUI); // gl settings 
  F(new   repeatUI); // loop group 
  F(new    scaleUI); // dilation 
  F(new    shiftUI); // translation 
  F(new   rotateUI); // rotation 
} 
GraphicPlugs graphicplugs;
A specific format opportunity to clarify code by showing parallel structures.

reveal errors


x = M[0][0]*cos(a) + M[1][0]*sin(a) + M[2][0]; 
y = M[0][1]*sin(a) + M[1][1]*cos(a) + M[2][1]; 
z = M[0][2]        + M[1][1]        + M[2][2]; 
//                        ^--error.

encourage scanning


nedwaves.com 2017 [171108]