|
|
|
@ -125,6 +125,11 @@ |
|
|
|
|
* weird C++ iterators. Amit did a lot to show me how to do these calculations |
|
|
|
|
* without branching. Thanks to you both--and to everyone else--for helping me while I |
|
|
|
|
* stream my development. |
|
|
|
|
* |
|
|
|
|
* ### SERIOUS DISCLAIMER |
|
|
|
|
* |
|
|
|
|
* I am horribly bad at trigonometry and graphics algorithms, so if you've got an idea to improve them |
|
|
|
|
* or find a bug shoot me an email at help@learncodethehardway.com. |
|
|
|
|
*/ |
|
|
|
|
namespace shiterator { using std::vector, std::queue, std::array; using |
|
|
|
|
std::min, std::max, std::floor; |
|
|
|
|