

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
public interface SurveyorsDirection
Represents a measurement of direction. This could be an azimuth or a bearing. Each line segment has both a direction and a length, or distance. Directions can be combined with distances to represent a vector in coordinate geometry. Angles can be calculated between directions, and a new direction can be calculated by adding or subtracting an angle from another direction. Directions are key to mapping angles, which are simply measures of revolution, to a fixed cartesian (2D grid) coordinate system.
Nested Class Summary  

static class 
SurveyorsDirection.Quadrant
Defines a set of quadrants to which a direction can belong. 
Method Summary  

void 
flop180Degrees()
Flops this direction 180 degrees. 
SurveyorsDirection.Quadrant 
getQuadrant()
Returns the quadrant in which this direction lies. 
SurveyorsAngle 
getValue()
Returns the value of this direction as a SurveyorsAngle. 
void 
rotate(BasicSurveyorsAngle argAngle,
boolean argRotationDirection)
Rotates this direction by the amount specified in the first angle. 
void 
rotateBackward90Degrees()
Rotates this bearing backward (counterclockwise) 90 degrees. 
void 
rotateForward90Degrees()
Rotates this bearing forward (clockwise) 90 degrees. 
Method Detail 

SurveyorsAngle getValue()
SurveyorsDirection.Quadrant getQuadrant()
void flop180Degrees()
void rotateForward90Degrees()
void rotateBackward90Degrees()
void rotate(BasicSurveyorsAngle argAngle, boolean argRotationDirection)


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 