net.surveyos.sourceforge.jtswarped.coordinateGeometry
Class BasicVector

java.lang.Object
  extended by net.surveyos.sourceforge.jtswarped.coordinateGeometry.BasicVector
All Implemented Interfaces:
Vector

public class BasicVector
extends java.lang.Object
implements Vector


Constructor Summary
BasicVector(ChangeInXAndY argChanges)
           
BasicVector(SurveyorsDirection argDirection, double argDistance)
           
 
Method Summary
 com.vividsolutions.jts.geom.LineString getAsLineString(com.vividsolutions.jts.geom.Coordinate argStartPoint)
          Returns this Vector as a LineString.
 double getChangeInX()
          Get the change-in-x component of this Vector.
 ChangeInXAndY getChangeInXAndY()
          Get the change-iny and change-in-X component of this vector.
 double getChangeInY()
          Get the change-in-Y component of this Vector.
 SurveyorsDirection getDirection()
          Returns the direction of this Vector.
 double getDistance()
          Returns the distance or length of this Vector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicVector

public BasicVector(SurveyorsDirection argDirection,
                   double argDistance)

BasicVector

public BasicVector(ChangeInXAndY argChanges)
Method Detail

getAsLineString

public com.vividsolutions.jts.geom.LineString getAsLineString(com.vividsolutions.jts.geom.Coordinate argStartPoint)
Description copied from interface: Vector
Returns this Vector as a LineString. The Coordinate that is the start point of the line must be provided as an argument.

Specified by:
getAsLineString in interface Vector

getChangeInX

public double getChangeInX()
Description copied from interface: Vector
Get the change-in-x component of this Vector.

Specified by:
getChangeInX in interface Vector

getChangeInXAndY

public ChangeInXAndY getChangeInXAndY()
Description copied from interface: Vector
Get the change-iny and change-in-X component of this vector.

Specified by:
getChangeInXAndY in interface Vector

getChangeInY

public double getChangeInY()
Description copied from interface: Vector
Get the change-in-Y component of this Vector.

Specified by:
getChangeInY in interface Vector

getDirection

public SurveyorsDirection getDirection()
Description copied from interface: Vector
Returns the direction of this Vector.

Specified by:
getDirection in interface Vector

getDistance

public double getDistance()
Description copied from interface: Vector
Returns the distance or length of this Vector.

Specified by:
getDistance in interface Vector