Skip to content

Commit e5ca263

Browse files
authored
Merge pull request #1527 from johnhaddon/removeInterpolationAsserts
Interpolator : Remove overzealous asserts
2 parents 8d2cbd3 + 251f55a commit e5ca263

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

include/IECore/Interpolator.inl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,12 @@ namespace IECore
4040
template<typename T>
4141
void LinearInterpolator<T>::operator()(const T &y0, const T & y1, double x, T &result) const
4242
{
43-
assert(x >= 0.0);
44-
assert(x <= 1.0);
45-
4643
result = static_cast<T>(y0 + (y1 - y0) * x);
4744
}
4845

4946
template<typename T>
5047
void CubicInterpolator<T>::operator()(const T &y0, const T &y1, const T &y2, const T &y3, double x, T &result ) const
5148
{
52-
assert(x >= 0.0);
53-
assert(x <= 1.0);
54-
5549
T a0 = y3 - y2 - y0 + y1;
5650
T a1 = y0 - y1 - a0;
5751
T a2 = y2 - y0;

0 commit comments

Comments
 (0)