I have two points (A, B) and the length of d. How can I find point C?
Compute a vector V from A to B, and normalize it.
V = (B - A) / |B - A|
Since the vector is normalized, it will have a length of one, and it will indicate the direction of B relative to A. If you then scale the vector by d you will have the displacement from A to C
V' = d * V
which you can simply add to A to yield C:
C = V' + A
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
1 year ago