// 이웃 방향 반시계 방향. public static EWSN next_ccw(EWSN eswn) { switch(eswn) { case EWSN.EAST: eswn = EWSN.NORTH; break; case EWSN.WEST: eswn = EWSN.SOUTH; break; case EWSN.SOUTH: eswn = EWSN.EAST; break; case EWSN.NORTH: eswn = EWSN.WEST; break; } return(eswn); }
// 이웃 방향 반시계 방향. public static EWSN next_ccw(EWSN eswn) { switch (eswn) { case EWSN.EAST: eswn = EWSN.NORTH; break; case EWSN.WEST: eswn = EWSN.SOUTH; break; case EWSN.SOUTH: eswn = EWSN.EAST; break; case EWSN.NORTH: eswn = EWSN.WEST; break; } return(eswn); }
public BlockIndex get_next(EWSN eswn) { BlockIndex next = this; switch (eswn) { case EWSN.EAST: next.x += 1; break; case EWSN.WEST: next.x -= 1; break; case EWSN.SOUTH: next.z -= 1; break; case EWSN.NORTH: next.z += 1; break; } return(next); }
public BlockIndex get_next(EWSN eswn) { BlockIndex next = this; switch(eswn) { case EWSN.EAST: next.x += 1; break; case EWSN.WEST: next.x -= 1; break; case EWSN.SOUTH: next.z -= 1; break; case EWSN.NORTH: next.z += 1; break; } return(next); }