Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.rico.adventure.entity.hotspot
Class HotspotDistanceToCameraComparator

    java.lang.Object
      de.rico.adventure.entity.hotspot.HotspotDistanceToCameraComparator

All Implemented Interfaces:
  java.util.Comparator<AbstractInteractiveHotspot>

    public class HotspotDistanceToCameraComparator

extends java.lang.Object
implements java.util.Comparator<AbstractInteractiveHotspot>

This is a comparator class that can be used to compare the distances to the camera of two interactive hotspots. Because this comparator uses only the center points of the hotspots and not their expansion into the world to perform the sorting, the result are not garanteed to be correct in any case. This is just some kind of rough sorting.

Author:
  Frank Bruns

Constructor Summary
`HotspotDistanceToCameraComparator()`

Method Summary
`int` | `compare(AbstractInteractiveHotspot hot1, AbstractInteractiveHotspot hot2)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.util.Comparator
`equals`

Constructor Detail

### HotspotDistanceToCameraComparator

    public HotspotDistanceToCameraComparator()

Method Detail

### compare

    public int compare(AbstractInteractiveHotspot hot1,
                       AbstractInteractiveHotspot hot2)

  Specified by:
    `compare` in interface `java.util.Comparator<AbstractInteractiveHotspot>`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD