markaren / threepp

C++17 port of three.js (r129)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matrix4.setposition() not same as three.js's Matrix4.setposition()

Plingaas opened this issue · comments

commented

According to https://threejs.org/docs/index.html#api/en/math/Matrix4.setPosition, the function Matrix4.setposition() should set elements with index 3, 7 and 11 to x, y, z respectively.

However, currently threepp is setting the indexes 12, 13 and 14.

Matrix4 &Matrix4::setPosition(float x, float y, float z) {

Possibly an error?