Probably not optimal, but: find the vectors of the span plane (name them U and V), express the point P in terms of U and V and apply two-dimensional rotation. PS: normal does not fully determine the plane; you need at least a point in the plane.
zvrba source share