Implemented some spatial arithmetic