home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / RADIANCE / CAL / BEZIER.CAL next >
Text File  |  1993-10-07  |  183b  |  10 lines

  1. {
  2.     Cubic Bezier Interpolating Function
  3.  
  4.     02Mar90
  5. }
  6. bezier(p1, p2, p3, p4, t) =     p1 * (1+t*(-3+t*(3-t))) +
  7.                 p2 * 3*t*(1+t*(-2+t)) +
  8.                 p3 * 3*t*t*(1-t) +
  9.                 p4 * t*t*t ;
  10.