Add a common function called transformPointWithNormal