Fix MSVC extension for setp

Fix PointsAlongLine
This commit is contained in:
Jonathan 2021-10-05 21:38:04 -04:00
parent 52839d4e7f
commit 81b7fbf916
3 changed files with 2 additions and 7 deletions

View File

@ -619,7 +619,7 @@ public:
}
if (which & std::ios_base::out) {
this->setp(cbase, cbase, cbase + size);
this->setp(cbase, cbase + size);
}
}

View File

@ -451,9 +451,9 @@ std::vector<V> PointsAlongLine(const V &start, const V &end, const float step)
return {};
std::vector<V> result;
const int stepCount = static_cast<int>(len / step);
result.reserve(stepCount + 1);
const V dir = linesegment / len;
const int stepCount = static_cast<int>(len / step);
for (int i = 0; i <= stepCount; i++) {
result.push_back(start + (dir * (step * i)));
}

View File

@ -14,11 +14,6 @@
using namespace std;
static qvec4f extendTo4(const qvec3f &v)
{
return qvec4f(v, 1.0f);
}
TEST(mathlib, MakeCDF)
{