Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11456

Re: Constraining a Location to Move Along a Plot in a Manipulate

From "djmpark" <djmpark@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Constraining a Location to Move Along a Plot in a Manipulate
Date 2012-08-23 06:52 +0000
Message-ID <k14jvm$7f6$1@smc.vnet.net> (permalink)
References <17693491.188885.1345512738836.JavaMail.root@m06>
Organization Time-Warner Telecom

Show all headers | View raw


Assuming you really do want a Locator constrained to an adjustable line I
have prepared a notebook and PDF file that should appear in a day or so on
the archive site that Peter Lindsay at the St. Andrew Mathematics department
keeps for me. 

http://www.st-andrews.ac.uk/~pl10/c/djmpark/ 

It allows a line segment to be repositioned and oriented with two locators.
A third locator then moves the point along the line. The line is
parameterized to go from the first to the second point as the parameter is
varied from 0 to 1. When the line is repositioned the third point maintains
its parametric position. When the third locator is moved, it is constrained
to the line, and its parameter is recalculated and displayed.

John Browne's GrassmannAlgebra Application was used to perform the
calculations for the dynamic display.


David Park
djmpark@comcast.net 
http://home.comcast.net/~djmpark/index.html 



From: Gregory Lypny [mailto:gregory.lypny@videotron.ca] 


Hello everyone,

Awhile back, participants on this forum kindly showed me how to constrain a
locator to move along a curve by using DynamicModule[...], an example of
which is in the Help Centre.  But I can't figure out how to pull this off in
a Manipulate,where I'm guessing that the locator would be a control.  Say I
have a simple Manipulate that plots a line, y = mx + b, where m is control
for changing the slope.  I would also like to have a locator that users can
slide up and down the line in lieu of a slider control that draws a point on
the line.

Regards,

Gregory

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Constraining a Location to Move Along a Plot in a Manipulate "djmpark" <djmpark@comcast.net> - 2012-08-23 06:52 +0000

csiph-web