Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Commit 9f02694

Browse files
committed
Remove cosine interpolation function for angles
1 parent 5c2de89 commit 9f02694

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

overwolf/src/logic/util.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ export function interpolateVectorsCosine(start: Vector2, end: Vector2, percentag
7979
};
8080
}
8181

82-
export function interpolateAngleCosine(start: number, end: number, percentage: number) {
83-
const mu = computeCosineInterpolationMu(percentage);
84-
const bestEnd = correctEndAngle(start, end);
85-
return start * (1 - mu) + bestEnd * mu;
86-
}
87-
8882
function correctEndAngle(start: number, end: number) {
8983
const alternativeEnd1 = end - Math.PI * 2;
9084
const alternativeEnd2 = end + Math.PI * 2;

0 commit comments

Comments
 (0)