www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: raft on February 03, 2010, 08:29:46 am

Title: quaternions and matrices
Post by: raft 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 ?
Title: Re: quaternions and matrices
Post by: EgonOlsen on February 03, 2010, 08:45:04 am
I don't really know, but i would expect it.
Title: Re: quaternions and matrices
Post by: raft 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 ::)
Title: Re: quaternions and matrices
Post by: EgonOlsen on February 04, 2010, 12:00:09 am
Math is fun, isn't it?... ;D
Title: Re: quaternions and matrices
Post by: .jayderyu 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
Title: Re: quaternions and matrices
Post by: raft on February 04, 2010, 06:19:17 am
Math is fun, isn't it?... ;D
only if you are a masochist !@#$(*