Skip to content

Commit

Permalink
DirectionUtils.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunstrike committed Dec 10, 2013
1 parent fb07bc9 commit c1b89ad
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/mantle/world/DirectionUtils.java
@@ -0,0 +1,19 @@
package mantle.world;

import net.minecraftforge.common.ForgeDirection;

/**
* Helper functions for dealing with ForgeDirection
*
* @author Sunstrike <sun@sunstrike.io>
*/
public class DirectionUtils {

private DirectionUtils() {} // All static

public static boolean isRightAngles(ForgeDirection a, ForgeDirection b)
{
return a != b && a != b.getOpposite() && a != ForgeDirection.UNKNOWN && b != ForgeDirection.UNKNOWN;
}

}

0 comments on commit c1b89ad

Please sign in to comment.