Na této stránce

Utils::MathUtils Namespace

namespace Utils::MathUtils

Obsahuje funkce pro interpolaci. Více...

Header: #include <MathUtils>

Funkce

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)

Podrobný popis

Dokumentace funkcí

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

Exponenciální interpolace:

  • Pro x = 0 vrátí hodnotu y1.
  • Pro x = xHalfLife vrátí 50 % vzdálenosti mezi y1 a y2.
  • Pro x = nekonečno vrátí y2.

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

Lineární interpolace:

  • Pro x = x1 vrátí výsledek y1.
  • Pro x = x2 vrátí y2.

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

Tangenciální interpolace:

  • Pro x = 0 vrátí y1.
  • Pro x = xHalfLife vrátí 50 % vzdálenosti mezi y1 a y2.
  • Pro x = nekonečno vrátí y2.

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.