I have a plane defined through a point P and 2 3d-vectors Xdir and yDir.
I wish to convert coordinates of points on this plane between local 2d-parametric and world 3d coordinate systems.
I know the conversion from 2d Parametric to 3d is
C(u, v) = P + u*XDir + v*YDir
however i have been unable to find a way for the inverse case
C'(x,y,z) which should give me the parameters u and v for any point x,y,z in the plane.
How does this conversion work?