このページでは

Utils::MathUtils Namespace

namespace Utils::MathUtils

補間を行う関数が含まれています。詳細...

Header: #include <MathUtils>

関数

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)

詳細な説明

関数のドキュメント

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

指数補間:

  • x = 0 の場合、y1 を返します。
  • x =xHalfLife の場合、y1 とy2 の間の距離の 50 % を返します。
  • x = ∞ の場合、y2 を返します。

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

線形補間:

  • x =x1 の場合、y1 が返されます。
  • x =x2 の場合、y2 を返します。

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

接線補間:

  • x = 0 の場合、y1 を返します。
  • x =xHalfLife の場合、y1 とy2 の間の距離の 50 % を返します。
  • x = ∞ の場合、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.