Recitation 5: Rendering Fractals
Recitation 5: Rendering Fractals
Recitation 5: Rendering Fractals
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.)