Class CollectionUtils.SortTokensByDistance

Object
SortTokensByDistance
All Implemented Interfaces:
Comparator<SectorEntityToken>
Enclosing class:
CollectionUtils

public static class CollectionUtils.SortTokensByDistance extends Object implements Comparator<SectorEntityToken>
A Comparator that sorts SectorEntityTokens by distance the Vector2f passed into the constructor.
Since:
1.1
  • Constructor Details

    • SortTokensByDistance

      public SortTokensByDistance(Vector2f location, boolean includeRadius)
      Parameters:
      location - The central location to judge distance from.
      includeRadius - Whether to include collision radius in the check.
      Since:
      1.6
    • SortTokensByDistance

      public SortTokensByDistance(Vector2f location)
      Parameters:
      location - The central location to judge distance from.
      Since:
      1.1
  • Method Details