public Coordinate GetCoordinate( Direction direction )
{
switch ( direction )
{
case Direction.NorthWest:
return this + nw;
case Direction.NorthEast:
return this + ne;
case Direction.East:
return this + e;
case Direction.SouthEast:
return this + se;
case Direction.SouthWest:
return this + sw;
case Direction.West:
return this + w;
default:
throw new InvalidOperationException();
}
}