Passing pointers to intersection functions