BSNS102 Study Guide - Final Guide: Linear Map, Common Subexpression Elimination, Anatomical Plane
Document Summary
Chapter 11: transformations in c++ axis == 2 => x += s*y, z += t*y axis == 3 => x += s*z, y += t*z. // setup the matrix to perform a projection onto a plane passing. // opposite matrix elements are equal m11 = 1. 0f - n. x*n. x; m22 = 1. 0f - n. y*n. y; m33 = 1. 0f - n. z*n. z; m12 = m21 = -n. x*n. y; m13 = m31 = -n. x*n. z; m23 = m32 = -n. y*n. z; // setup the matrix to perform a reflection about a plane parallel. // axis is a 1-based index, which specifies the plane to project about: // the translation is set appropriately, since translation must occur if. 3 => reflect about the plane z=k void. // setup the matrix to perform a reflection about an arbitrary plane. The unit vector n is perpendicular to the plane. // quick sanity check to make sure they passed in a unit vector.