Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Beta/3D/Interpol.cpp

Go to the documentation of this file.
00001 #ifndef __J2K__Interpol_CPP__
00002 #define __J2K__Interpol_CPP__
00003 
00004 #include <j2k/Fred/3d/interpol.hpp>
00005 
00006 double Z_InterpolationBilineaire( ZMaille* zm, Point2d* pt ) {
00007   double  u, v, temp;
00008 
00009   u = zm->Z00 + ( zm->Z10 - zm->Z00 ) * pt->X;
00010   v = zm->Z01 + ( zm->Z11 - zm->Z01 ) * pt->X;
00011 
00012   temp = u + ( v - u ) * pt->Y;  
00013 
00014   return temp;
00015 }
00016 
00017 Point2d  Grad_InterpolationBilineaire( ZMaille* zm, Point2d* pt ) {
00018   double    temp;
00019   Point2d   pente; 
00020 
00021   temp    = zm->Z00 + zm->Z11 - zm->Z10 - zm->Z01;
00022   pente.X = zm->Z10 - zm->Z00 + temp * pt->Y;
00023   pente.Y = zm->Z01 - zm->Z00 + temp * pt->X;
00024 
00025   return pente; 
00026 }
00027 
00028 #endif

Generated on Sun Oct 14 18:46:07 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001