How to flip one point of a triangle when other two remains fixed. Like the following image,

Here the top point of the triangle A is flipped to triangle B when other two points remained fixed. The triangle can have arbitrary shape and orientation. I have the coordinate of all 3 points. The flip will be on the other side of the fixed side made by the fixed two points.
Suppose you want to flip triangle $ABC$ to $A'BC$, and let $C'$ be the projection of $A$ onto line $BC$. We have $$ \vec{BC'}={\vec{BA}\cdot\vec{BC}\over BC^2}\vec{BC} $$ and $$ \vec{AA'}=2\vec{AC'}=2(\vec{BC'}-\vec{BA})=2\left({\vec{BA}\cdot\vec{BC}\over BC^2}\vec{BC}-\vec{BA}\right). $$