org.onebusaway.geospatial.model
Class XYPoint

java.lang.Object
  extended by org.onebusaway.geospatial.model.XYPoint
All Implemented Interfaces:
Serializable, Point

public final class XYPoint
extends Object
implements Point, Serializable

See Also:
Serialized Form

Constructor Summary
XYPoint(double[] ordinates)
           
XYPoint(double x, double y)
           
 
Method Summary
 int getDimensions()
          Point Interface
 double getDistance(Point point)
           
 double getOrdinate(int index)
           
 double getX()
           
 double getY()
           
 String toString()
          Object Interface
 XYPoint translate(double[] distances)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XYPoint

public XYPoint(double x,
               double y)

XYPoint

public XYPoint(double[] ordinates)
Method Detail

getX

public double getX()

getY

public double getY()

getDimensions

public int getDimensions()
Point Interface

Specified by:
getDimensions in interface Point

getOrdinate

public double getOrdinate(int index)
Specified by:
getOrdinate in interface Point

translate

public XYPoint translate(double[] distances)
Specified by:
translate in interface Point

getDistance

public double getDistance(Point point)
Specified by:
getDistance in interface Point

toString

public String toString()
Object Interface

Overrides:
toString in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.