net.surveyos.sourceforge.jtswarped.angles
Interface SurveyorsAngle

All Known Implementing Classes:
BasicSurveyorsAngle

public interface SurveyorsAngle


Nested Class Summary
static class SurveyorsAngle.AngleUnit
          Defines the several angle units or angle formats.
static class SurveyorsAngle.ValuePartType
          Defines the parts of a degrees-minutes-seconds angle value.
 
Method Summary
 SurveyorsAngle decrease(SurveyorsAngle argAmount)
          Returns a new SurveyorsAngle whose angle value is calculated by decreasing the angle value of this angle by the angle passed as an argument.
 double getCosin()
          Returns the Cosin (or Cosine) of this angle.
 int getDegrees()
          Returns the whole degrees of this angle as an int.
 double getFractionalSeconds()
          Returns the fractional seconds of this angle as an double with a value equal to or greater than zero but less than 1.0.
 int getMinutes()
          Returns the whole minutes of this angle as an int.
 int getSeconds()
          Returns the whole seconds of this angle as an int.
 double getSin()
          Returns the sin (or sine) of this angle.
 double getTangent()
          Returns the tangent of this angle.
 SurveyorsAngle increase(SurveyorsAngle argAmount)
          Returns a new SurveyorsAngle whose angle value is calculated by increasing the angle value of this angle by the angle passed as an argument.
 boolean isAcute()
          Indicates if this angle is acute.
 boolean isObtuse()
          Indicates if this angle is obtuse.
 boolean isRightAngle()
          Indicates if this angle is a right angle.
 void rotateGeometry(com.vividsolutions.jts.geom.Geometry argTarget, com.vividsolutions.jts.geom.Coordinate argBasePoint, boolean argIncrease)
          Rotates the Geometry argument using the Coordinate provided as the base point for the rotation.
 

Method Detail

getDegrees

int getDegrees()
Returns the whole degrees of this angle as an int. This will be a value between 0 and 359.


getMinutes

int getMinutes()
Returns the whole minutes of this angle as an int. This will be a value between 0 and 59.


getSeconds

int getSeconds()
Returns the whole seconds of this angle as an int. This will be a value between 0 and 59.


getFractionalSeconds

double getFractionalSeconds()
Returns the fractional seconds of this angle as an double with a value equal to or greater than zero but less than 1.0.


isObtuse

boolean isObtuse()
Indicates if this angle is obtuse. It is considered to be obtuse if its value is creater than 180 degrees.


isAcute

boolean isAcute()
Indicates if this angle is acute. It is considered to be acute if its value is less than 180 degrees.


isRightAngle

boolean isRightAngle()
Indicates if this angle is a right angle. It is considered to be a right angle if it is exactly 90 degrees.


getSin

double getSin()
Returns the sin (or sine) of this angle.


getCosin

double getCosin()
Returns the Cosin (or Cosine) of this angle.


getTangent

double getTangent()
Returns the tangent of this angle.


increase

SurveyorsAngle increase(SurveyorsAngle argAmount)
Returns a new SurveyorsAngle whose angle value is calculated by increasing the angle value of this angle by the angle passed as an argument. Angles with a value greater than 360 are wrapped back down.


decrease

SurveyorsAngle decrease(SurveyorsAngle argAmount)
Returns a new SurveyorsAngle whose angle value is calculated by decreasing the angle value of this angle by the angle passed as an argument. Angles with a value less than 0 are wrapped back up.


rotateGeometry

void rotateGeometry(com.vividsolutions.jts.geom.Geometry argTarget,
                    com.vividsolutions.jts.geom.Coordinate argBasePoint,
                    boolean argIncrease)
Rotates the Geometry argument using the Coordinate provided as the base point for the rotation. If the boolean argument is true, the geometry will be rotated in a clockwise direction, if the boolean argument is false it will be rotated in a counterclockwise direction.