awayjs / renderer

Interface for scene and material modules
75 stars 20 forks source link

Matrix3D / Vector3D #9

Closed karimbeyrouti closed 11 years ago

karimbeyrouti commented 11 years ago

Matrix3D and Vector3D operations need testing ( this is somewhat urgent )... The output from TS should be validated against AS3 out. At the moment - tests with a focus on translations would be very useful. This would rule out Matrix3D / Vector3D as a possibly cause of bugs.

karimbeyrouti commented 11 years ago

All test cases are here: https://github.com/away3d/away3d-core-ts/blob/master/tests/away/geom/VextMat3DTests.ts


- Methods tested and working same as AS3:

 determinant ( using same calc as AS3 ) 
 invert
 copyRowTo ( changed to be column major like AS3 ) 
 copyRowFrom ( changed to be column major like AS3 ) 
 copyColumnTo ( changed to be column major like AS3 ) 
 copyColumnFrom ( changed to be column major like AS3 ) 
 clone();
 transpose();
 copyRawDataTo();
 copyRawDataFrom();
 copyFrom();
 appendTranslation();
 appendScale();
 prependScale();
 prepend();
 position();
 prependTranslation();
 transformVector() ;
 identity();
 copyToMatrix3D();
 append()

- Methods tested and needing update:

 appendRotation - Different results in AS3 / TS
 decompose  - Different results in AS3 / TS
 deltaTransformVector  - Different results in AS3 / TS
 interpolateTo();  - Different results in AS3 / TS
 recompose - Note results are same, but in some cases flash recomposes when we do not ( return false ) 
 prependRotation()

- Methods not tested: