Author Topic: quaternions and matrices  (Read 1926 times)

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
quaternions and matrices
« on: February 03, 2010, 08:29:46 am »
for 2 rotations R1 and R2, let Q1 and Q2 quaternion representations and M1 and M2 matrix representations of these rotations. M1 and M2 are row major matrices like jPCT's

does Q1xQ2 represent the same rotation with M1xM2 ?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: quaternions and matrices
« Reply #1 on: February 03, 2010, 08:45:04 am »
I don't really know, but i would expect it.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: quaternions and matrices
« Reply #2 on: February 03, 2010, 10:17:37 am »
yes they seem they are. there was a typo in my ported quaternion which caused me almost gone mad ::)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: quaternions and matrices
« Reply #3 on: February 04, 2010, 12:00:09 am »
Math is fun, isn't it?... ;D

Offline .jayderyu

  • long
  • ***
  • Posts: 116
    • View Profile
Re: quaternions and matrices
« Reply #4 on: February 04, 2010, 12:53:01 am »
Only when your familiar with the process. Otherwise it's a major pain in the @$$.

I remember working with Quaternion before. Just glad that jBullet used 3x3 matrices and JPCT matrice while 4x4 seem to work on 3x3 :P

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: quaternions and matrices
« Reply #5 on: February 04, 2010, 06:19:17 am »
Math is fun, isn't it?... ;D
only if you are a masochist !@#$(*