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.