Skip to content

Commit

Permalink
Rename IntPow -> Pow
Browse files Browse the repository at this point in the history
  • Loading branch information
Majiir committed Sep 1, 2014
1 parent 872ae4b commit 5accecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Plugin/GeodesicGrid/Cell.cs
Expand Up @@ -542,7 +542,7 @@ private Cell approach(ChildType direction, int levels)
{
if (levels == 0) { return this; }
if (isPolar) { throw new ArgumentException("Cannot find child of a polar cell"); }
var a = (uint)IntMath.IntPow(3, (uint)levels);
var a = (uint)IntMath.Pow(3, (uint)levels);
return new Cell(this.index * a - (uint)((5 * (4 << (2 * this.Level)) * (a - (1 << (2 * levels))) - ((byte)direction - 4) * (a - 1)) / 2));
}

Expand Down
2 changes: 1 addition & 1 deletion Plugin/GeodesicGrid/IntMath.cs
Expand Up @@ -4,7 +4,7 @@ namespace Kethane.GeodesicGrid
internal static class IntMath
{
// From: http://stackoverflow.com/a/383596/303422
public static int IntPow(int x, uint pow)
public static int Pow(int x, uint pow)
{
int ret = 1;
while (pow != 0)
Expand Down

0 comments on commit 5accecd

Please sign in to comment.