added a fast point transform function