# A mobile point between two mobile points

Rumburak shared this question 5 years ago

Hi,

I have in 3D Grapher a line f and 3 mobile points A,B,C.

I want point C move only between point A and B.

How can I do this?

polyhedroms are not objects for intersect yet. meantime you can rename the faces of cube to f1,f2,...f6 (for more comfort)

then create list1 = RemoveUndefined[Zip[Intersect[j, fac], fac, {f1, f2, f3, f4, f5, f6}]]

2

Create a segment between Point A and B and draw C on the segment. Then make the segment invisible.

1

Excellent idea. Thank you.

1

But, line intersect an cube. Intersect[cube,line] not wotk ... And line is mobile ...

1

1

OK. Line is called j and cube a . Intersect line j with cube a is impossible for me.

2

polyhedroms are not objects for intersect yet. meantime you can rename the faces of cube to f1,f2,...f6 (for more comfort)

then create list1 = RemoveUndefined[Zip[Intersect[j, fac], fac, {f1, f2, f3, f4, f5, f6}]]

1

Is ok, but I need names of intersection points.

How can I do this ? I need point F move between this two points...

1

Is OK.

P1=Element[list1, 1]

P2=Element[list1, 2]

This is all I need. Thank you.