[almost fixed]Matrix documentation
Posted: Wed Dec 07, 2016 9:54 am
It should be noted that in most methods the matrix transform operations assume W = 1 when transforming vectors.
As you know
vector4df = {1,1,1,1} // vector of positions (1,1,1) in cartesian space
vector4df = {1,1,1,0} // a direction in cartesian space
The difference is that directions can be rotated, BUT NOT TRANSLATED: infact if you multiply vector4df of a direction by a translation matrix it should not change.
Now this is basic level and obvious stuff for everyone here, I wanted just to notice that it is not documented^^ and some methods use the vector4 option, while some other methods use vector3 (no W component) aribtrary without a documentation or some kind of API consisntency.
EDIT:
Ok I fixed the documentation where was unclear (in trunk), I'm thinking if there are methods that I can add for which there will be a use.
As you know
vector4df = {1,1,1,1} // vector of positions (1,1,1) in cartesian space
vector4df = {1,1,1,0} // a direction in cartesian space
The difference is that directions can be rotated, BUT NOT TRANSLATED: infact if you multiply vector4df of a direction by a translation matrix it should not change.
Now this is basic level and obvious stuff for everyone here, I wanted just to notice that it is not documented^^ and some methods use the vector4 option, while some other methods use vector3 (no W component) aribtrary without a documentation or some kind of API consisntency.
EDIT:
Ok I fixed the documentation where was unclear (in trunk), I'm thinking if there are methods that I can add for which there will be a use.