Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

When constructing an orientation matrix, are the rows of the matrix the axis?

The matrix is row-major and I'm multiplying vectors on the right (Mv). So, the matrix looks like

r0c0 r0c1 r0c2
r1c0 r1c1 r1c2
r2c0 r2c1 r2c2
share|improve this question
add comment

2 Answers 2

up vote 9 down vote accepted

From a mathematical point of view, it depends on in which order you are multiplying the vectors with the matrix.

  • Using a row-vector (v) and multiplying it with a matrix (A) as v∙A, then the rows will act as the axes.
  • Using a column-vector (v) and multiplying a matrix (A) with it as A∙v, then the columns will act as the axes.
share|improve this answer
add comment

That depends, if it is in row major form then yes, for column major form no.

Where does this matrix come from?

share|improve this answer
    
Please elaborate. Did I give you enough info to do so? –  zooropa Dec 2 '10 at 14:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.