maybe there should be a unittest to verify intersects, nearTo and containedBy because it isn't easy to follow the math here ;)