entmake xline, vector argument
Hello, I'm trying to entmake xline by specifying 2 points.But the (xline) subfunction, created by Lee Mac expects point and vector, how do I calculate it from the 2 points I specify? (mapcar '- pt2 pt1)
But I think you need unit vector, so :
(mapcar '/ (mapcar '- pt2 pt1) (list (distance pt1 pt2) (distance pt1 pt2) (distance pt1 pt2)))
HTH, M.R. An example.
Thank you mr.Ribar, the second example with unit vector worked!
页:
[1]