I've got a plane in a 3D space (triangle, represented by 2 direction vectors a and b) and a vertex on the plane (v).
$\boldsymbol{a}$, $\boldsymbol{b}$ and $\boldsymbol{v}$ are vectors, $s$ and $t$ are scalars $$\boldsymbol{v} = s \, \boldsymbol{a} + t \, \boldsymbol{b}$$
$a = (a_x, a_y, a_z)$ etc.
$$v_x = s \, a_x + t \, b_x$$ $$ v_y = s \, a_y + t \, b_y$$ $$ v_z = s \, a_z + t \, b_z$$
I know a, b and v. And v is definitelly on the plane. I need to find the scalar-factors s and t. When I try to solve this I get something like
$$\begin{align}t &=& \frac{v_z - v_x \frac{ a_z }{ a_x} }{ b_z - b_x \frac{ a_z }{ a_x}}\\ s &=& \frac{v_x - t \, b_x }{ a_x} \end{align}$$
and other variations. And it seems to give me good results many times, but not always.
Problem:
Sometimes I get for $2$ different $v$ the very same values for $s$ and $t$. I expect each new vertex of the triangle to have a unique pair of $s$ and $t$.
I know I have too few unknown variables. What I don't understand just now: what does it mean for my results? What can I do to improve my procedure of solving this equation?