BSNS102 Study Guide - Final Guide: Glossary Of Computer Graphics, Correlation Does Not Imply Causation, Dot Product

121 views4 pages

Document Summary

Assume the original bounding box is in xmin, xmax, ymin, etc. , and the new bounding box will be computed into x"min, x"max, y"min, etc. Let"s examine how we might more quickly compute x"min as an example. In other words, we wish to find the minimum value of where [x, y, z] is any of the original eight corner points. Our job is to figure out which of these cor- ner points would have the smallest x value after transformation. The trick to minimizing the entire sum is to minimize each of the products individually. We must decide which of xmin or xmax to substitute for x in order to minimize the product. Obviously, if m11 > 0, then the smaller of the two, xmin, will result in the smaller product. Conversely, if m11 < 0, then xmax gives a smaller product. Conveniently, whichever of xmin or xmax we use for computing x"min, we use the other value for computing x"max.