It is simple, really.
B = -1/2 * AOr B.x = -1/2 * A.x, B.y = -1/2 * A.y, B.z = -1/2 * A.z. This speaks of vectors, by the way. You want to change the result. The formula is dead simple. What am I missing?
EDIT
Your application knows the location of the red dot (shorten it as vector R). Your application also knows the vector A. It should find the vector B, which is on the same line as AR, on the other hand, R as A, and such as A is twice as large B. Well, in this case:
- Temporarily compute vector
V = (A - R) - Now (it's easy :))
B = R - 0.5 * V.
It's simple, I promise. Uppercase letters are vectors, which are usually 2-tuples or 3-tuples of real numbers (depending on whether you work in 2D or 3D).
In fact, this is not enough. Have questions?