Back to index

radiance  4R0+20100331
Functions | Variables
hermite3.c File Reference
#include <stdio.h>

Go to the source code of this file.

Functions

void hermite3 (double hp[3], double p0[3], double p1[3], double r0[3], double r1[3], double t)
void htan3 (double ht[3], double p0[3], double p1[3], double r0[3], double r1[3], double t)

Variables

static const char RCSid [] = "$Id: hermite3.c,v 2.4 2003/11/16 10:29:38 schorsch Exp $"

Function Documentation

void hermite3 ( double  hp[3],
double  p0[3],
double  p1[3],
double  r0[3],
double  r1[3],
double  t 
)

Definition at line 13 of file hermite3.c.

{
       register int  i;
       double  tmh[4];
       
       tmh[0] = (2.0*t - 3.0)*t*t + 1.0;
       tmh[1] = (-2.0*t + 3.0)*t*t;
       tmh[2] = ((t - 2.0)*t + 1.0)*t;
       tmh[3] = (t - 1.0)*t*t;
       
       for (i = 0; i < 3; i++)
              hp[i] = p0[i]*tmh[0] + p1[i]*tmh[1] +
                     r0[i]*tmh[2] + r1[i]*tmh[3];
}

Here is the caller graph for this function:

void htan3 ( double  ht[3],
double  p0[3],
double  p1[3],
double  r0[3],
double  r1[3],
double  t 
)

Definition at line 37 of file hermite3.c.

{
       register int  i;
       double  tpmh[4];
       
       tpmh[0] = (6.0*t - 6.0)*t;
       tpmh[1] = (-6.0*t + 6.0)*t;
       tpmh[2] = (3.0*t - 4.0)*t + 1.0;
       tpmh[3] = (3.0*t - 2.0)*t;
       
       for (i = 0; i < 3; i++)
              ht[i] = p0[i]*tpmh[0] + p1[i]*tpmh[1] +
                     r0[i]*tpmh[2] + r1[i]*tpmh[3];
}

Here is the caller graph for this function:


Variable Documentation

const char RCSid[] = "$Id: hermite3.c,v 2.4 2003/11/16 10:29:38 schorsch Exp $" [static]

Definition at line 2 of file hermite3.c.