Auf dieser Seite

Utils::MathUtils Namespace

namespace Utils::MathUtils

Enthält Funktionen zur Interpolation. Mehr...

Header: #include <MathUtils>

Funktionen

int interpolateExponential(int x, int xHalfLife, int y1, int y2)
int interpolateLinear(int x, int x1, int x2, int y1, int y2)
int interpolateTangential(int x, int xHalfLife, int y1, int y2)

Ausführliche Beschreibung

Funktionsdokumentation

int MathUtils::interpolateExponential(int x, int xHalfLife, int y1, int y2)

Exponentielle Interpolation:

  • Für x = 0 gibt sie y1 zurück.
  • Für x = xHalfLife gibt sie 50 % der Entfernung zwischen y1 und y2 zurück.
  • Für x = unendlich gibt die Funktion y2 zurück.

int MathUtils::interpolateLinear(int x, int x1, int x2, int y1, int y2)

Lineare Interpolation:

  • Für x = x1 wird y1 zurückgegeben.
  • Für x = x2 wird y2 zurückgegeben.

int MathUtils::interpolateTangential(int x, int xHalfLife, int y1, int y2)

Tangentiale Interpolation:

  • Für x = 0 gibt sie y1 zurück.
  • Für x = xHalfLife gibt sie 50 % der Entfernung zwischen y1 und y2 zurück.
  • Für x = unendlich gibt die Funktion y2 zurück.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.