Skip to content

Commit 4563b37

Browse files
committed
Moved Testing function to Tools/mathx menu item, and added documentation
1 parent 022e586 commit 4563b37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Runtime/mathx.common.int.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public static partial class mathx
172172
/// <inheritdoc cref="pow(int4,int4)"/>
173173
[MethodImpl(IL)] public static float2 pow(this int2 f, int2 y) => math.pow(f, y);
174174
/// <inheritdoc cref="pow(int4,int4)"/>
175-
[MethodImpl(IL)] public static float pow(this int f, int y) => math.pow(f, y);
175+
[MethodImpl(IL)] public static float pow(this int f, int y) => math.pow(f, y); // has to return float in case there are negative input values
176176

177177
/// <inheritdoc cref="pow(int4,int4)"/>
178178
[MethodImpl(IL)] public static float4 pow(this int4 f, int pow) => new(math.pow(f.x, pow), math.pow(f.y, pow), math.pow(f.z, pow), math.pow(f.w, pow));

TestMe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Unity.Mathematics
1818
{
1919
public static partial class mathx
2020
{
21-
[MenuItem("Athena/Test")]
21+
[MenuItem("Tools/mathx/Test")]
2222
public static void TestBenchmark()
2323
{
2424
var d = 2.3;

0 commit comments

Comments
 (0)