Utils::MathUtils Namespace
namespace Utils::MathUtilsContiene funzioni per l'interpolazione. Altro...
| Header: | #include <MathUtils> |
Funzioni
| 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) |
Documentazione delle funzioni
int MathUtils::interpolateExponential(int x, int xHalfLife, int y1, int y2)
Interpolazione esponenziale:
- Per x = 0 restituisce y1.
- Per x = xHalfLife restituisce il 50 % della distanza tra y1 e y2.
- Per x = infinito restituisce y2.
int MathUtils::interpolateLinear(int x, int x1, int x2, int y1, int y2)
Interpolazione lineare:
- Per x = x1 restituisce y1.
- Per x = x2 restituisce y2.
int MathUtils::interpolateTangential(int x, int xHalfLife, int y1, int y2)
Interpolazione tangenziale:
- Per x = 0 restituisce y1.
- Per x = xHalfLife restituisce il 50 % della distanza tra y1 e y2.
- Per x = infinito restituisce 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.