How to find a point along a line a certain distance away from another point

80 vues (au cours des 30 derniers jours)
agatte
agatte le 2 Fév 2017
Commenté : shalvi singh le 12 Mar 2021
Hi,
I have a line between two points : P1 = (x1,y1) and P2= (x2,y2). I have linear function equation : y = ax + b I want to extend a line a distance about 10 from P1 and P2 (in each direction left and right -) I need to find new points P3 and P4 on this line. I don"t have any idea how to move point a distance on the line ?
I would be appreciate for any help please.
  1 commentaire
Adam
Adam le 2 Fév 2017
Sounds like a question you should work out on paper before you do it in Matlab if you aren't familiar with the maths itself.

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 2 Fév 2017

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by