ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/hermite.cal
Revision: 1.2
Committed: Mon Oct 1 19:53:38 2012 UTC (11 years, 7 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad4R2P2, rad5R0, rad5R1, rad4R2, rad4R2P1, rad5R3, HEAD
Changes since 1.1: +4 -1 lines
Log Message:
Added comment

File Contents

# User Rev Content
1 greg 1.2 { RCSid $Id$ }
2     { Hermite spline function }
3    
4     hermite(p0,p1,r0,r1,t) : p0 * ((2*t-3)*t*t+1) +
5 greg 1.1 p1 * (-2*t+3)*t*t +
6     r0 * (((t-2)*t+1)*t) +
7     r1 * ((t-1)*t*t);