Add a common function 'transformPointWithNormal'