users
[Top] [All Lists]

Re: [cinjug-users] tracing a path

To: Chris McMahan <cmcmahan@xxxxxxx>
Subject: Re: [cinjug-users] tracing a path
From: Eric Bardes <ericbardes@xxxxxxxxx>
Date: Tue, 15 Mar 2005 09:24:10 -0500
Cc: Jason Kretzer <jrkretzer@xxxxxxxxx>, users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=DTeh40pLhKhBqSdsPfVV8PrWrEnjgpt3O4QcG5TtsKRvwxYF6Y2irpcLmLzlh1wILLI293h9wf6e2yUtnWJbLZzoxHRa1WueckxbK+q3B0+rFGxciF1zWJgFTTi6ZjdfrLq+ud1z8cMEWcVPRFn4wPZB6yePxGuvhur+eP/gNFE=
In-reply-to: <16950.59147.130000.151556@gargle.gargle.HOWL>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <20050314223411.34025.qmail@web50101.mail.yahoo.com> <16950.59147.130000.151556@gargle.gargle.HOWL>
Reply-to: Eric Bardes <ericbardes@xxxxxxxxx>
That applet is also computing the points at the resolution of the
screen.  I doubt that would be possible in your situation.

I agree with Chris in don't think of it as a line.  Think of it as a
series of points.  I'd also suggest to think of it as a curve.  Curve
Fitting Algorithms do a decent job forecasting a path based upon a
series of sample points.

NIST has an excellent list of links to all kinds of Numerical Methods.

http://math.nist.gov/javanumerics/


On Tue, 15 Mar 2005 08:45:47 -0500, Chris McMahan <cmcmahan@xxxxxxx> wrote:
> The secret is to think of it not as a line, but as a series of
> points. The applet you pointed out is merely drawing points on the
> canvas at the specified interval.
> 
> Just extract the point's position at a certain point in your code as
> it moves around, and draw another point at those coordinates.
> 
> - Chris
> 
> Jason Kretzer writes:
> >Hello all:
> >
> >I am trying to draw a line behind a moving point so as
> >to draw the path of the point. I have looked through
> >the books that I have and I cannot seem to find
> >exactly what I need.
> >
> >Here is a website that has an applet that shows what I
> >am trying to do.  Notice how the path is left behind
> >the moving ball image.
> >
> >http://www.phys.hawaii.edu/~teb/java/ntnujava/bouncingBall/bouncingBall.html
> >
> >Any other resources would be appreciated.
> >
> >Thanks for the help.
> >
> >-Jason
> >
> 
> --
>    ================================
>    Chris McMahan | cmcmahan@xxxxxxx
>    ================================
> 
> 
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
> 
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
> 
> 


-- 
Cheers,
Eric Bardes

<Prev in Thread] Current Thread [Next in Thread>