Segment between two points

reben80 shared this question 3 years ago
Answered

Hi All;

Let say we have two points A,B and a slider d and I want to draw a segment that start from A and go toward B with length d, that is it does not necessary the line segment connect A,B. its only need to go from A to B the length of the segment is determined by the slide d.

Any idea how to do this?


thanks

Best Answer
photo

Segment(A, A + d UnitVector(Segment(A, B)))

Comments (3)

photo
3

You could draw line AB, then create the circle with center in A and radius d, name B the intersection of line and circle, draw segment AB then hide the line and the circle.

See https://wiki.geogebra.org/e...

photo
1

Thank you! That really helps.

photo
photo
3

Segment(A, A + d UnitVector(Segment(A, B)))

© 2021 International GeoGebra Institute