Simplest Linear interpolation:

f(x) = x1 + (abs(x2 - x1) / 2) (given x1 < x2) - the abs() is the absolute function (x>0) just in case you want to skip checking x1<x2)


but here is a web page that describes another approach which is more formal and probably
more correct for other applications where time is involved for example...

http://www.cs.brown.edu/stc/outrea/greenhouse/nursery/interpolation/formal.html

---------------------=---------------------
Xavier Bury
TNS NT LAN Server
ext 6465



Alejandro Tejada <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

06/06/03 03:03
Please respond to metacard

       
        To:        [EMAIL PROTECTED]
        cc:        ^
        Subject:        Importing (& streamlining) EPS



on Thu Jun 5 04:26:00 2003
jbv wrote:

> in the EPStoMetacard stack (I'm not sure
>I'm using the last version though), and more
>specifically in the bezier handler, is there a way
>to modify the equations used to get x values (and
>the corresponding y values) EQUALLY SPACED
>on the x axis ?

There are other formulas to calculate the bezier
points. I'll check my files to see if I find them.

>I know I could use the handler as it is and then
>perform linear interpolation, but I'd like to
>compute the values on 1 single pass...

Can you give us an example of this linear
interpolation?

By the way jbv, you made a demostration of openGL
in MetaCard. Are you going to keep working in
this demo? or Abandoned the idea?

Alejandro







=====
Useful sites:
http://www.sonsothunder.com/devres/metacard/tips/ and /revolution/tips/
http://lists.runrev.com/pipermail/metacard/ and /use-revolution/
http://wiki.macitworks.com/revdocs
http://www.google.com/advanced_search?q=site:lists.runrev.com

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard




Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER

Reply via email to