Added math.h into 2d.hpp.