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

Nguyen Binh Nguyen Binh <ngbinh at glassegg.com>
Wed Feb 12 22:28:02 2003


MB> I wonder why:
MB> typedef dReal dVector3[4];

MB> Shouldn't it be:
MB> typedef dReal dVector3[3];   ?

    IMHO, it's for the sake of speed.
    Take a look at how the FPU doing math you'll see.
    
-- 
Best regards,

---------------------------------------------------------------------
   Nguyen Binh
   Software Engineer
   Glass Egg Digital Media
   
   E.Town Building  
   7th Floor, 364 CongHoa Street
   Tan Binh District,
   HoChiMinh City,
   VietNam,

   Phone : +84 8 8109018
   Fax   : +84 8 8109013

     www.glassegg.com
---------------------------------------------------------------------