Menu

Possible bug in AffineTransform3D.transform(AffineTransform3D trans)

Bernard
2014-03-02
2014-03-09
  • Bernard

    Bernard - 2014-03-02

    Hi David,

    I think I found bugs in transform(AffineTransform3D trans) :
    -calculation is done in 2D although we are in 3D
    (coefficients m2? and m?3 are not calculated) ;
    -it does not fulfil "line by column" algorithm,
    for instance :
    double n00 = m00 * trans.m00 + m10 * trans.m01;
    should be :
    double n00 = m00 * trans.m00 + m01 * trans.m10 + m02 * trans.m20;

    Same problems in preConcatenate(AffineTransform3D trans).

    Regards,
    Bernard

     
  • David

    David - 2014-03-09

    Hi Bernard,

    thanks for reporting! I have fixed this, the new version is available from the subversion repository. I have also changed the method signature (returns a new transform instead of changing the local version).

    regards,
    David

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.