00001
00002 #ifndef RC_INTERPOLATION_H
00003 #define RC_INTERPOLATION_H
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 vec3f evalLERP(vec3f &p0, vec3f &p1, const f32 x);
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 vec3f evalCatmullRom(vec3f &p0, vec3f &p1, vec3f &p2, vec3f &p3, const f32 t, const f32 x);
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 vec3f evalCatmullRomTangent(vec3f &p0, vec3f &p1, vec3f &p2, vec3f &p3, const f32 t, const f32 x);
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 vec3f evalBezier(vec3f &p0, vec3f &p1, vec3f &p2, vec3f &p3, const f32 x);
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 vec3f evalBezierTangent(vec3f &p0, vec3f &p1, vec3f &p2, vec3f &p3, const f32 x);
00065
00066
00067 #endif
00068