[apps/graph] Evaluation methods renaming

This commit is contained in:
Léa Saviot
2019-08-28 16:56:49 +02:00
parent 28a721e96e
commit c71ef7ff79
22 changed files with 94 additions and 109 deletions

View File

@@ -24,7 +24,7 @@ void GraphView::drawRect(KDContext * ctx, KDRect rect) const {
rectXMin = rectXMin < 0 ? 0 : rectXMin;
float rectXMax = pixelToFloat(Axis::Horizontal, rect.right() + k_externRectMargin);
for (int x = rectXMin; x < rectXMax; x += step) {
float y = s->evaluateAtParameter((float)x, context()).y();
float y = s->evaluateXYAtParameter((float)x, context()).x2();
if (std::isnan(y)) {
continue;
}