summaryrefslogtreecommitdiffstats
path: root/src/control/Curves.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-09 19:21:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-09 19:21:13 +0200
commita55e738dfad92ae7e23e45c3593384b9469f1177 (patch)
treee3714c0badf493db709cbf516cc7f9611f57e38f /src/control/Curves.cpp
parentfix (diff)
downloadre3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.gz
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.bz2
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.lz
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.xz
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.tar.zst
re3-a55e738dfad92ae7e23e45c3593384b9469f1177.zip
Diffstat (limited to 'src/control/Curves.cpp')
-rw-r--r--src/control/Curves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Curves.cpp b/src/control/Curves.cpp
index 623ab040..0a01a7aa 100644
--- a/src/control/Curves.cpp
+++ b/src/control/Curves.cpp
@@ -19,7 +19,7 @@ void CCurves::CalcCurvePoint(CVector* pPos1, CVector* pPos2, CVector* pDir1, CVe
float actualFactor = CalcSpeedScaleFactor(pPos1, pPos2, pDir1->x, pDir1->y, pDir2->x, pDir2->y);
CVector2D dir1 = *pDir1 * actualFactor;
CVector2D dir2 = *pDir2 * actualFactor;
- float curveCoef = 0.5f - 0.5f * cos(3.1415f * between);
+ float curveCoef = 0.5f - 0.5f * Cos(3.1415f * between);
*pOutPos = CVector(
(pPos1->x + between * dir1.x) * (1.0f - curveCoef) + (pPos2->x - (1 - between) * dir2.x) * curveCoef,
(pPos1->y + between * dir1.y) * (1.0f - curveCoef) + (pPos2->y - (1 - between) * dir2.y) * curveCoef,