[almost fixed]Matrix documentation

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

[almost fixed]Matrix documentation

Post by REDDemon »

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.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply