Your question is a bit misleading, since it hints to a possible solution of your problem. To solve your problem this way, you would apply, e.g., the answer by CY Aries twice. But your original problem is to determine whether point A is within the green strip (defined by points B and C) or not. To solve it, you can calculate $\vec{BA}\cdot\vec{BC}$ and compare it to $\vec{BC}\cdot\vec{BC}$, i.e., to $\Vert\vec{BC}\Vert^2$. The advantage is that you don't need to repeat this last calculation for any further point to be checked. In other words, if you have $n$ points like A, you only need to calculate $n+1$ dot products instead of $2n$.
Remember that, in 2D (just add terms for $z$ in 3D), $$\vec{BA}\cdot\vec{BC} = (x_a-x_b)(x_c-x_b)+(y_a-y_b)(y_c-y_b)$$ and $$\Vert\vec{BC}\Vert^2 = (x_c-x_b)^2+(y_c-y_b)^2$$
Referring to your image,
$$\vec{BA}\cdot\vec{BC} < 0 \implies A \in red_{left} $$
$$\vec{BA}\cdot\vec{BC} = 0 \implies \vec{BA} \perp \vec{BC} \lor A \equiv B$$
$$0 < \vec{BA}\cdot\vec{BC} < \Vert\vec{BC}\Vert^2 \implies A \in green $$
$$\vec{BA}\cdot\vec{BC} = \Vert\vec{BC}\Vert^2 \implies \vec{CA} \perp \vec{CB} \lor A \equiv C$$
$$\vec{BA}\cdot\vec{BC} > \Vert\vec{BC}\Vert^2 \implies A \in red_{right} $$