An Interactive Introduction to OpenGL Programming
An Interactive Introduction to OpenGL Programming
An Interactive Introduction to OpenGL Programming
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Homogeneous Coordinates<br />
– each vertex is a column vec<strong>to</strong>r<br />
⎡x⎤<br />
⎢ ⎥<br />
⎢<br />
y<br />
v r = ⎥<br />
⎢z<br />
⎥<br />
⎢ ⎥<br />
⎣w⎦<br />
– w is usually 1.0<br />
– all operations are matrix multiplications<br />
– directions (directed line segments) can be represented<br />
with w = 0.0