inside2trans function

test points against a 2-transition surface