Na ovoj stranici

Utils::MathUtils Namespace

namespace Utils::MathUtils

Sadrži funkcije za interpolaciju. Više...

Header: #include <MathUtils>

Funkcije

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)

Detaljan opis

Dokumentacija funkcije

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

Eksponencijalna interpolacija:

  • Za x = 0 vraća y1.
  • Za x = xHalfLife vraća 50 % udaljenosti između y1 i y2.
  • Za x = beskonačno vraća y2.

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

Linearna interpolacija:

  • Za x = x1 vraća y1.
  • Za x = x2 vraća y2.

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

Tangencijalna interpolacija:

  • Za x = 0 vraća y1.
  • Za x = xHalfLife vraća 50 % udaljenosti između y1 i y2.
  • Za x = beskonačno vraća 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.