void (int direction) { myDirection = direction; int yDirection = myDirection & Position.EAST_WEST; if (yDirection == Position.WEST) { myXSeparator = 0; } else if (yDirection == Position.EAST) { myXSeparator = 1; } else { myXSeparator = 0.5; } int xDirection = myDirection & Position.NORTH_SOUTH; if (xDirection == Position.NORTH) { myYSeparator = 0; } else if (xDirection == Position.SOUTH) { myYSeparator = 1; } else { myYSeparator = 0.5; } }