   Dotting a vector and a matrix
  I am uncertain what happens in my vertex shader file when I write this line of code:float dotProduct = dot( vector, matrix );I assume it treats the vector as a row vector, which means the matrix's column must match the vector in terms of elements. I am uncertain which column of the matrix is dotted against the vector.Thank you in advance,Kevin   
  Which shader language are using?  That's not legal in HLSL...I'm not sure what happens in GLSL or Cg.   ;  you can explicitly select what part of the matrix you want to 'dot' :)float dotProduct = dot( vector, matrix[0] );or an 4x4 would be likefloat4 dotProduct = float4( dot( vector, matrix[0]),   dot( vector, matrix[1]),   dot( vector, matrix[2]),    dot( vector, matrix[3]));;  This is simply a matrix-vector-multiplication, but "the other way around" than usual when you're using DX. It is equivalent to mul(matrix, vector) or mul(vector, transpose(matrix)). It is useful for instance when matrix is orthonormal (i.e. all rows and columns are unit length and perpendicular to each other, e.g. a rotation matrix). In that case, the transpose of the matrix is the inverse, so mul(matrix, vector) = mul(vector, inverse(matrix)).