src/occ_405/wof/wof.c
/**
 * interpolate_linear
 *
 * Description: Helper function that takes in the necessary input for
 *              a linear interpolation and returns the result of the
 *              calculation
 *
 *              Y = m*(X-x1) + y1, where m = (y2-y1) / (x2-x1)
 *
 * Return: The result Y of the formula above
 */
interpolate_linear
Description: Helper function that takes in the necessary input for
a linear interpolation and returns the result of the
calculation



The result Y of the formula above
interpolate_linear Description : Helper function that takes in the necessary input for a linear interpolation and returns the result of the calculation The result Y of the formula above
inline int32_t interpolate_linear( int32_t i_X,
                                   int32_t i_x1,
                                   int32_t i_x2,
                                   int32_t i_y1,
                                   int32_t i_y2 )
{
    return ( ((i_X - i_x1)*(i_y2 - i_y1)) / (i_x2 - i_x1) ) + i_y1;
}
inline int32_t interpolate_linear ( int32_t i_X , int32_t i_x1 , int32_t i_x2 , int32_t i_y1 , int32_t i_y2 ) { return ( ( ( i_X - i_x1 ) * ( i_y2 - i_y1 ) ) / ( i_x2 - i_x1 ) ) + i_y1 ; }
interpolate_linear
 Description: Helper function that takes in the necessary input for
              a linear interpolation and returns the result of the
              calculation
interpolate_linear Description : Helper function that takes in the necessary input for a linear interpolation and returns the result of the calculation