Hello. This plot continuation of the question , the language is also not fundamental.
There is a plane - the projection of the world ("camera"), given by the point PP:{x,y,z} and the normal PV:{x,y,z} . Absolute random.
All points (array) are also P[N]:{x,y,z} . Points obviously belong to the plane.
Situation: the world is ready, projected onto the camera and awaiting display. It is only necessary to tear 2D coordinates from the camera relative to PP.
The essence of the question: how to rotate the plane (ie, array) so that PP coincides with {0,0,0} , and the plane itself with OXY ? I can drag the plane myself, the quest - turn it.
My thoughts:
- on turning matrices (does not the commutation of turning turn the whole raspberry off me?)
- somehow based on the vector P [N] -PP (a thought beats into the head, but is not formed)
- I am sure that there is a simple solution)
- I'm obviously stupid somewhere =) Although there is a suspicion that this is another global problem of engines.
If the task (pull coordinates) is easier solved in another way, I will not get upset)
PS: I beg you, as few matrices as possible