Skip to content

Commit ab167ba

Browse files
committed
lol
1 parent 0202334 commit ab167ba

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Source/System/RTETools.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ namespace RTE {
5050
float angleDelta = std::fmod(endRot.GetRadAngle() - startRot.GetRadAngle(), fullTurn);
5151
float angleDistance = std::fmod(angleDelta * 2.0F, fullTurn) - angleDelta;
5252
return Matrix(startRot.GetRadAngle() + (angleDistance * Lerp(scaleStart, scaleEnd, 0.0F, 1.0F, progressScalar)));
53-
54-
float startRad = startRot.GetRadAngle();
55-
float endRad = endRot.GetRadAngle();
56-
float diff = startRad - endRad;
57-
if (diff > c_PI) {
58-
std::swap(startRad, endRad);
59-
diff -= c_PI;
60-
} else if (diff < -c_PI) {
61-
std::swap(startRad, endRad);
62-
diff += c_PI;
63-
}
64-
65-
return Matrix(startRad + (diff * Lerp(scaleStart, scaleEnd, 0.0F, 1.0F, progressScalar)));
6653
}
6754

6855
float EaseIn(float start, float end, float progressScalar) {

0 commit comments

Comments
 (0)