org.onebusaway.transit_data_federation.model
Class ProjectedPoint
java.lang.Object
org.onebusaway.transit_data_federation.model.ProjectedPoint
- All Implemented Interfaces:
- Serializable
public class ProjectedPoint
- extends Object
- implements Serializable
Simple point class that keeps both the global lat-lon representation and the
projected x-y representation for faster distance calculations.
- Author:
- bdferris
- See Also:
- Serialized Form
Constructor Summary |
ProjectedPoint(double lat,
double lon,
double x,
double y,
int srid)
|
ProjectedPoint
public ProjectedPoint(double lat,
double lon,
double x,
double y,
int srid)
getLat
public double getLat()
getLon
public double getLon()
toCoordinatePoint
public CoordinatePoint toCoordinatePoint()
getX
public double getX()
getY
public double getY()
getSrid
public int getSrid()
distance
public double distance(ProjectedPoint p)
hashCode
public int hashCode()
Object
Interface
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.