|
||||||||||
PREV NEXT | FRAMES NO FRAMES All Classes |
Packages that use Position | |
---|---|
main |
Uses of Position in main |
---|
Subclasses of Position in main | |
---|---|
class |
City
The City class represents coordinates given in
latitude/longitude pairs and the name associated with them. |
class |
ImageMapCity
The ImageMapCity class contains all of the necessary
information to plot a city on an image map. |
Fields in main declared as Position | |
---|---|
private Position |
ImageParameters.lowerRightCorner
|
private Position |
Node.position
|
private Position |
Edge.position1
|
private Position |
Edge.position2
|
private Position |
ImageParameters.upperLeftCorner
|
Methods in main that return Position | |
---|---|
Position |
ImageParameters.getLowerRightCorner()
Returns the GPS position of the lower-right corner of the map. |
Position |
Node.getPosition()
Returns the node's GPS position. |
Position |
Edge.getPosition1()
Returns the GPS position of one end of the edge. |
Position |
Edge.getPosition2()
Returns the GPS position of the other end of the edge. |
Position |
ImageParameters.getUpperLeftCorner()
Returns the GPS position of the upper-left corner of the map. |
Methods in main with parameters of type Position | |
---|---|
double |
Position.coordinateDistanceTo(Position position)
Finds the square of the distance between two positions, treating them as points on a flat plane. |
double |
Position.distanceTo(Position position)
Finds the distance in meters between two positions on earth. |
boolean |
Position.equals(Position other)
is other object equal to this one? |
protected boolean |
GenerateMap.positionInRange(Position position,
ImageParameters imageParameters)
Returns true if the position specified is within the range
specified in the ImageParameters . |
private City |
CityFinder.returnClosestCity(Position position,
int dimension)
|
City |
CityFinder.returnClosestCity2d(Position position)
Given a position, returns the closest city to it in flattened space |
City |
CityFinder.returnClosestCity3d(Position position)
Given a position, returns the closest city to it in space |
void |
Node.setPosition(Position position)
|
Constructors in main with parameters of type Position | |
---|---|
City(Position cityPos,
java.lang.String cityName)
Constructs a new City with the position and name indicated
by the arguments. |
|
Edge(Position position1,
Position position2,
java.lang.Double weightColor,
java.lang.Double weightSize)
Creates a new Edge with the arguments. |
|
ImageMapCity(Position cityPos,
java.lang.String cityName,
int x,
int y,
java.lang.Integer cityID,
int size)
Constructs a new ImageMapCity with the point and name
indicated by the arguments. |
|
Node(java.lang.Integer id,
Position position,
java.lang.Double weightColor,
java.lang.Double weightSize)
Creates a new Node with the arguments. |
|
Node(java.lang.Integer id,
Position position,
java.lang.Double weightColor,
java.lang.Double weightSize,
java.lang.String country,
java.lang.String region,
java.lang.String city)
Creates a new Node with the arguments. |
|
Position(Position p)
Constructs a new Position that represents the same
position as the argument; in other words, the newly created position is a
copy of the argument position. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES All Classes |