If there is someone out there that is a math whiz, I could use some help.

I am trying to get an object to ease in or out on a bezier curve, and am
having utter frustration trying to calculate.

Could someone advise?


 -------

 p0 = myVertexList[a].vertex + offsetPoint
    p1 = myVertexList[a].handle1 + p0
    p3 = myVertexList[secondPointRef].vertex + offsetPoint
    p2 = myVertexList[secondPointRef].handle2 + p3

    cP = 3.00 * (p1 - p0)
    bP = (3.00 * (p2 - p1)) - cP
    aP = p3 - p0 - cP - bP

    -- add the first point

    append pPointList, p0

    -- calculate all the subsequent points along the Bezier curve

    repeat with i = 1 to tempIterations
      theTime = i/float(tempIterations+1)
      pLoc = p0 + (cP * theTime) + (bP * power(theTime, 2)) + (aP *
power(theTime, 3))
      append pPointList, pLoc
    end repeat


--------------------


 Brian Douglas  (:ub)
============================================================================




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to