public class Location
extends java.lang.Object
Constructor and Description |
---|
Location() |
Location(int col,
int row) |
Location(int col,
int row,
int band) |
Location(Location p) |
public Location(int col, int row, int band)
col
- row
- band
- public Location(Location p)
p
- public Location()
public Location(int col, int row)
public boolean lessThan(Location other)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getRow()
public int getCol()
public int getBand()
public double distanceBetween(Location p2)
p2
- public java.lang.String toString()
toString
in class java.lang.Object