source/blender/collada/BCSampleData.cpp
/* We need double here because the OpenCollada API needs it.
 * precision = -1 indicates to not limit the precision. */
We need double here because the OpenCollada API needs it.
precision = -1 indicates to not limit the precision.
We need double here because the OpenCollada API needs it . precision = - 1 indicates to not limit the precision .
void BCMatrix::get_matrix(DMatrix &mat, const bool transposed, const int precision) const
{
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 4; j++) {
      float val = (transposed) ? matrix[j][i] : matrix[i][j];
      if (precision >= 0)
        val = floor((val * pow(10, precision) + 0.5)) / pow(10, precision);
      mat[i][j] = val;
    }
}
void BCMatrix :: get_matrix ( DMatrix & mat , const bool transposed , const int precision ) const { for ( int i = 0 ; i < 4 ; i ++ ) for ( int j = 0 ; j < 4 ; j ++ ) { float val = ( transposed ) ? matrix [ j ] [ i ] : matrix [ i ] [ j ] ; if ( precision >= 0 ) val = floor ( ( val * pow ( 10 , precision ) + 0.5 ) ) / pow ( 10 , precision ) ; mat [ i ] [ j ] = val ; } }
We need double here because the OpenCollada API needs it.
We need double here because the OpenCollada API needs it .