2
$\begingroup$

I would like position two locators on discrete positions which are list's elements and represent a list of point's coordinates. I've ani image and on this I've detected ten circle shape. Now I'd like evaluate the mutual distancnces among circle's centroids using Locator and EuclideanDistance inside Manipulate. Thanks in advance.

$\endgroup$
  • $\begingroup$ Can you post a minimal example of what you have tried so far and what does not work? $\endgroup$ – Mauricio Fernández Nov 22 '16 at 16:17
  • $\begingroup$ Manipulate[ Graphics[Line[{p, q}], PlotRange -> 2], {{p, List[[1]]}, List[[2 ;;]], Locator}, {{q, List[[1]]}, List[[2 ;;]], Locator}] $\endgroup$ – Eduardo Nov 22 '16 at 16:27
  • $\begingroup$ You should edit your question and describe your problem, not put the example in a comment. Be as precise as you can, only then people will be able to help you. $\endgroup$ – Mauricio Fernández Nov 22 '16 at 16:31
  • $\begingroup$ I want to move a locator on an image; this locator mustn't change position continuosly but follows a list of points. $\endgroup$ – Eduardo Nov 22 '16 at 16:36
  • $\begingroup$ You can attach EventHandler to Points too. $\endgroup$ – Kuba Nov 22 '16 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.