20.03.2015 Views

Recitation 5: Rendering Fractals

Recitation 5: Rendering Fractals

Recitation 5: Rendering Fractals

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.

Quaternions in Lab 5<br />

●<br />

●<br />

●<br />

●<br />

Quaternion multiplication provided:<br />

– mul_quat, sqr_quat<br />

pos_to_quat<br />

– Given a plane as a parameter, converts a 3D<br />

position to a quaternion<br />

We'll store quaternions as float4's<br />

cutil_math.h provides vector math (dot, cross,<br />

etc.) and operator definitions (float4 * float,<br />

etc.)

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

Saved successfully!

Ooh no, something went wrong!