I found myself having to write a bunch of range checking code like this:
if (val < 0.0 || val > 1.0)
val = 1.0;
so I wrote this simple function.
Continue reading “C++ test for within”
NYC, Politics, and Tech
I found myself having to write a bunch of range checking code like this:
if (val < 0.0 || val > 1.0)
val = 1.0;
so I wrote this simple function.
Continue reading “C++ test for within”
This woman used a dry erase board and sent email to everyone to quit. I especially like how she reports on her boss.
Edited Aug 10.
“Girl quits her job on dry erase board, emails entire office (33 Photos)” is indeed a hoax, say its creators John and Leo Resig.