Original Post
I am writing some c++ classes to handle vector, matrix, and quaternion math, but I can''t work out how to implement some of the operators, eg. should scalar addition be defined for a 4d vector? If so, I don''t think it should apply to the w coordinate. Also, what is the definition of the cross product of 2 4d vectors? Similar questions for the 4d matrices.