[ODE] Why is dVector3 defined as dReal[4] ???

Max Gilead gilead at yellow.dyndns.org
Thu Feb 13 14:45:01 2003


Nguyen Binh wrote:
> MB> I wonder why:
> MB> typedef dReal dVector3[4];
> 
> MB> Shouldn't it be:
> MB> typedef dReal dVector3[3];   ?
If I may add my 2 cents, using 3x4 array is very convenient when 
application you're using ODE with is using 4x4 matrices. You can use 
such matrix as 3x4 as-is.

Max