

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object net.surveyos.sourceforge.jtswarped.angles.BasicSurveyorsAngle
public class BasicSurveyorsAngle
Provides a basic implementation of the SurveyorsAngle interface. This class adds three (3) constructors that can be used to create angle objects, and also adds methods to test for equality and for comparison.
Nested Class Summary 

Nested classes/interfaces inherited from interface net.surveyos.sourceforge.jtswarped.angles.SurveyorsAngle 

SurveyorsAngle.AngleUnit, SurveyorsAngle.ValuePartType 
Constructor Summary  

BasicSurveyorsAngle()
Creates a BasicSurveyorsAngle object with an agle equal to zero. 

BasicSurveyorsAngle(DegreesMinutesSecondsValue argDmsv)
Creates a BasicSurveyorsAnlge from a DegreesMinutesSecondsValue object. 

BasicSurveyorsAngle(int argDegrees,
int argMinutes,
int argSeconds,
double argFractionalSeconds)
Creates a BasicSurveyorsAngle using the values provided. 

BasicSurveyorsAngle(SurveyorsAngle argTarget)
This is a copy constructor that creates a new BasicSurveyorsAngle using the values for degrees, minutes, seconds, and fractional seconds provided in the SurveyorsAngle provided as an argument. 
Method Summary  

double 
convertToDecimalDegrees()

double 
convertToRadians()

BasicSurveyorsAngle 
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. 
BasicSurveyorsAngle 
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 
isGreaterThan(SurveyorsAngle argTarget)
Indicates if this angle is greater than the angle supplied as an argument. 
boolean 
isLessThan(SurveyorsAngle argTarget)
Indicates if this angle is less than the angle supplied as an argument. 
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. 
int 
testEquality(SurveyorsAngle argAngle,
double argTolerance)
Test this angle for equality with another angle. 
java.lang.String 
toString()

Methods inherited from class java.lang.Object 

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait 
Constructor Detail 

public BasicSurveyorsAngle()
public BasicSurveyorsAngle(int argDegrees, int argMinutes, int argSeconds, double argFractionalSeconds)
public BasicSurveyorsAngle(SurveyorsAngle argTarget)
public BasicSurveyorsAngle(DegreesMinutesSecondsValue argDmsv)
Method Detail 

public BasicSurveyorsAngle decrease(SurveyorsAngle argAmount)
SurveyorsAngle
decrease
in interface SurveyorsAngle
public BasicSurveyorsAngle increase(SurveyorsAngle argAmount)
SurveyorsAngle
increase
in interface SurveyorsAngle
public int getDegrees()
SurveyorsAngle
getDegrees
in interface SurveyorsAngle
public int getMinutes()
SurveyorsAngle
getMinutes
in interface SurveyorsAngle
public int getSeconds()
SurveyorsAngle
getSeconds
in interface SurveyorsAngle
public double getFractionalSeconds()
SurveyorsAngle
getFractionalSeconds
in interface SurveyorsAngle
public double convertToRadians()
public double convertToDecimalDegrees()
public double getCosin()
SurveyorsAngle
getCosin
in interface SurveyorsAngle
public double getSin()
SurveyorsAngle
getSin
in interface SurveyorsAngle
public double getTangent()
SurveyorsAngle
getTangent
in interface SurveyorsAngle
public boolean isAcute()
SurveyorsAngle
isAcute
in interface SurveyorsAngle
public boolean isObtuse()
SurveyorsAngle
isObtuse
in interface SurveyorsAngle
public boolean isRightAngle()
SurveyorsAngle
isRightAngle
in interface SurveyorsAngle
public void rotateGeometry(com.vividsolutions.jts.geom.Geometry argTarget, com.vividsolutions.jts.geom.Coordinate argBasePoint, boolean argIncrease)
SurveyorsAngle
rotateGeometry
in interface SurveyorsAngle
public int testEquality(SurveyorsAngle argAngle, double argTolerance)
argAngle
 The angle used in the test for equality with this angle.public boolean isLessThan(SurveyorsAngle argTarget)
public boolean isGreaterThan(SurveyorsAngle argTarget)
public java.lang.String toString()
toString
in class java.lang.Object


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