M
M
Max Cohen2018-02-20 13:24:26
Mathematics
Max Cohen, 2018-02-20 13:24:26

How to determine the intersection point of a circle with a certain radius?

Good afternoon, how can you define this?
I have coordinates of point A and B . I also assign the value of the radius r myself. For example, let it be 100. You need to find the coordinates of the point C. Point A coordinates change. X, Y coordinate system.
5a8bf75338807741844000.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Dubinin, 2018-02-20
@Max_Cohen

Given points A (Xa, Ya), B (Xb, Yb), a circle of radius rcentered at the point B. Find the point C (Xc, Yc)lying at the intersection of the ray BAwith the circle
Vector BA = {Xa - Xb, Ya - Yb};
Its length: |BA| = sqrt((Xa - Xb) ^ 2 + (Ya - Yb) ^ 2);
The point Cwill be found if the point is shifted Bby a vector BAdivided by its length and multiplied by r:

Xc = Xb + (Xa - Xb) / |BA| * r,
Yc = Yb + (Ya - Yb) / |BA| * r

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question