Skip to content

Commit f61b6eb

Browse files
committed
Fixed math for path theo.
1 parent 899348a commit f61b6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/JCSUnity/Scripts/Utilities/JCS_Mathf.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public static float PythagoreanTheorem(float s1, float s2, TriSides type)
423423
{
424424
// a^2 + b^2 = c^2
425425
float a = Mathf.Pow(s1, 2);
426-
float b = Mathf.Pow(s1, 2);
426+
float b = Mathf.Pow(s2, 2);
427427

428428
return Mathf.Sqrt(a + b);
429429
}

0 commit comments

Comments
 (0)