소스 검색

simplex_interpolator: bug fix

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> 11 년 전
부모
커밋
96c54bdb54
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/lol/math/simplex_interpolator.h

+ 2
- 2
src/lol/math/simplex_interpolator.h 파일 보기

@@ -73,10 +73,10 @@ protected:
samples_index[i] += sign;
this->ModFloor(samples_index);

result += (1 - 2 * dot(decimal_point - point_compare, mass_center - point_compare) / length(this->diagonal));
result += samples[samples_index] * (1 - 2 * dot(decimal_point - point_compare, mass_center - point_compare) / length(this->diagonal));
}

result += (1 - 2 * dot(decimal_point - reference, mass_center - reference) / length(this->diagonal));
result += samples[reference] * (1 - 2 * dot(decimal_point - reference, mass_center - reference) / length(this->diagonal));
}

inline void ModFloor(vec_t<int, N> & samples_index)


불러오는 중...
취소
저장