parent
52839d4e7f
commit
81b7fbf916
|
|
@ -619,7 +619,7 @@ public:
|
|||
}
|
||||
|
||||
if (which & std::ios_base::out) {
|
||||
this->setp(cbase, cbase, cbase + size);
|
||||
this->setp(cbase, cbase + size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,11 +14,6 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
static qvec4f extendTo4(const qvec3f &v)
|
||||
{
|
||||
return qvec4f(v, 1.0f);
|
||||
}
|
||||
|
||||
TEST(mathlib, MakeCDF)
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue