18.07.2014 Views

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!