public int direction(Coords d){
  return (int)Math.round(radian(d) / HEXSIDE) % 6;
}

public int direction ( Coords d ) { return ( int ) Math . round ( radian ( d ) / HEXSIDE ) % 6 ; }
returns the direction in which another coordinate lies ; 0 if the coordinates are equal .
