

Constructor can accept another ChunkDist, which will be added to the first distance, so that distance measures can be chained together.
Definition at line 37 of file ChunkDist.java.
Public Methods | |
| double | distance (Chunk c1, Chunk c2) |
| Compute distance between two Chunks. | |
| void | setTarget (Chunk t) |
| Set target chunk for compare function to use. | |
| int | compare (Object o1, Object o2) throws ClassCastException |
| Compare two Chunk's based on their distances from targetChunk. | |
|
|
Set target chunk for compare function to use. This needs to be called before compare() is called or there will be NullPointerExceptions. Definition at line 82 of file ChunkDist.java. |
1.2.18