I need some conceptual help with Direct3D's .... function. In their official documentation, they say that the computation that takes place can be summarized with this:
zaxis = normal(At - Eye) xaxis = normal(cross(Up, zaxis)) yaxis = cross(zaxis, xaxis)
xaxis.x yaxis.x zaxis.x 0 xaxis.y yaxis.y zaxis.y 0 xaxis.z yaxis.z zaxis.z 0 -dot(xaxis, eye) -dot(yaxis, eye) -dot(zaxis, eye) l
Now what I don't get is what's being done with the 'normal()' function being used in the first two lines ? How can I normal be computed with two vectors ?! Isn't a normal calculated for a plane ?!
In the second line, normal() is working on just one vector (since cross(Up, zaxis) would return one 3D vector) ..
So basically I need to know what's meant by using normal() in the first two equations ..
I need this to practice doing this computation manually on my own ..