luxeengine / alpha

alpha - deprecated 2015~2016. unrelated to the new engine! view the new engine here - https://luxeengine.com/
MIT License
565 stars 74 forks source link

phoenix.Matrix; Typo in up function #357

Closed ntrf closed 8 years ago

ntrf commented 8 years ago

Method up reports wrong data. There is a typo in the source code - wrong matrix component returned:

    public inline function up() {
        return new Vector( elements[4], elements[5], elements[10] );
    } //up

Z coordinate sould be elements[6] instead of elements[10].

ruby0x1 commented 8 years ago

Well spotted, the new maths classes in embers have unit tests to validate silly things like this. Thanks!