Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11456 > unrolled thread
| Started by | "djmpark" <djmpark@comcast.net> |
|---|---|
| First post | 2012-08-23 06:52 +0000 |
| Last post | 2012-08-23 06:52 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Constraining a Location to Move Along a Plot in a Manipulate "djmpark" <djmpark@comcast.net> - 2012-08-23 06:52 +0000
| From | "djmpark" <djmpark@comcast.net> |
|---|---|
| Date | 2012-08-23 06:52 +0000 |
| Subject | Re: Constraining a Location to Move Along a Plot in a Manipulate |
| Message-ID | <k14jvm$7f6$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web