}
}
public static Direction getDirection(Realm realm, Coordinate coordinate, Coordinate directionCoordinate) {
for (int i = 0; i < RealmConstants.directions.length; i++) {
Direction direction = RealmConstants.directions[i];
Coordinate tryCoordinate = Utility.getRelativeCoordinate(realm, coordinate, direction);
if (directionCoordinate.equals(tryCoordinate)) {
return direction;
}
}