The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Move point x towards point y
Replies: 11   Last Post: Oct 17, 2012 6:54 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruce Elliott

Posts: 127
Registered: 11/9/07
Re: Move point x towards point y
Posted: Oct 17, 2012 4:07 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

dpb <> wrote in message <k5mvig$q67$>...
> On 10/17/2012 12:48 PM, Bruce Elliott wrote:
> > dpb <> wrote in message <k5mmg1$19k$>...
> >>
> >> What's the definition of 1.0 unit(s)???

> ...

> > Presumably it's the same as the units for point 1 and point 2.
> ...
> Well, that's one presumption, yes...
> But might not
> p2(1)=p2(1)-1*sign(p2(1)-p1(1));
> p2(2)=p2(2);
> Be as equally a valid definition if the point is on a grid???

Do you mean that P2 shifts by one unit in the x-direction, but doesn't move in the y-direction? I suppose the OP might have been asking that ... although I guess then it's completely ambiguous whether this motion should be in the x-direction or the y-direction (and why).

I just assumed that he wanted the point to move along the line between P1 and P2. Matt J's response is the best for that.

> I was trying to get OP to think of what his problem statement really is
> in more concrete detail. Which assessment might lead to either
> a) understanding the answer to his own question, or failing that,
> b) at least getting closer to a definitive problem statement.
> Otherwise, it may be a correct answer to the wrong question...

Agreed - a little clearer explanation of what the problem is all about might help.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.