try and google for "check if a point is inside a hexagon", there are plenty of results telling you the maths to do this