src/com/wherehoo/WHGeo.java
/**
     * Finds a quadrant of a given <tt>angle</tt>.
     *@param angle  an angle, ranging from 0 to 360.
     *@return a <tt>String</tt>object describing the quadrant of <tt>angle</tt>.<br>
     * Possible output strings are:<br><br>
     *"N","NE","E","SE","S","SW","W","NW" 
     */
Finds a quadrant of a given angle.
@param angle  an angle, ranging from 0 to 360.
Finds a quadrant of a given angle . @param angle an angle ranging from 0 to 360 .
public static String quadrant(double angle){
	String quadrant="";
	if 		( (angle > 292.5) || (angle <= 67.5))  { quadrant = "N"; }
	else if ( (angle > 112.5) && (angle <= 247.5)) { quadrant = "S"; }
	if 		( (angle > 22.5)  && (angle <= 157.5)) { quadrant += "E"; }
	else if ( (angle > 202.5) && (angle <= 337.5)) { quadrant += "W"; }
	return quadrant;
    }
public static String quadrant ( double angle ) { String quadrant = "" ; if ( ( angle > 292.5 ) || ( angle <= 67.5 ) ) { quadrant = "N" ; } else if ( ( angle > 112.5 ) && ( angle <= 247.5 ) ) { quadrant = "S" ; } if ( ( angle > 22.5 ) && ( angle <= 157.5 ) ) { quadrant += "E" ; } else if ( ( angle > 202.5 ) && ( angle <= 337.5 ) ) { quadrant += "W" ; } return quadrant ; }
Finds a quadrant of a given <tt>angle</tt>.
Finds a quadrant of a given <tt > angle< / tt > .