I don't know of a good as1/2 lib. This math has a lot to do with line
smoothing, and can be used for various applications from graphics to
accurate signal processing. I would suggest brushing up on your
calculus/trig for assuming the tangency of a given point on the locus,
and for assuming the points on the "cage".
Hints:
* calculating the first segment of the curve is always the most
intensive imho. (although their are tons of methods for cheating
this, they effect accuracy)
* It all has to do with finding the axis of symmetry to project an
accurate curve, and finding the points on the quadratic or
cubic(way easier but slower because it has more points) "cage".
* If you already have the previous points, for the last segment of
the curve, you already know several of the points for the next
segment.
If anything, learning what is required for this project, although having
an uphill learning curve, will make you a better mathematician.
Anyone else have hints?
Thank You,
Anthony Pace
matt stuehler wrote:
All,
I'm looking for an AS1 (ideal) or AS2 version of a function that will
draw a continuous curved line through n points. I don't know much
about the math behind this, but I think that a Catmull-Rom spline is
what I'm looking for.
I've found a terrific example in AS3
(http://www.cartogrammar.com/blog/continuous-curves-with-actionscript-3),
but it uses a number of AS3 classes that I don't have access to in AS2
(e.g., fl.motion.BezierSegment).
Can anyone share a working example, or point me in a useful direction?
Many thanks in advance!
Cheers,
Matt
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders