| Package | Description |
|---|---|
| cz.cuni.amis.pogamut.base.utils.math |
| Modifier and Type | Class and Description |
|---|---|
static class |
DistanceUtils.AcceptAllDistanceFilter<T>
Filter that accepts all "objects" (does not filter anything out).
|
static class |
DistanceUtils.FilterAdapter<T>
Adapter that wraps
IFilter making it into DistanceUtils.IDistanceFilter. |
static class |
DistanceUtils.RangeDistanceFilter<T>
Filter that accepts all "objects" that are within range of min/max distance (inclusive).
|
static class |
DistanceUtils.VisibleFilter<T extends IViewable>
Accepts only VISIBLE (
IViewable.isVisible() == TRUE) objects. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ILocated> |
DistanceUtils.getDistanceSorted(Collection<T> locations,
ILocated target,
DistanceUtils.IDistanceFilter... filters)
Returns "locations" accepted by all "filters" sorted according to the distance to "target".
|
static <T> List<T> |
DistanceUtils.getDistanceSorted(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns "locations" accepted by all "filters" sorted according to the distance to "target".
|
static <T extends ILocated> |
DistanceUtils.getNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IDistanceFilter... filters)
Returns the nearest object to 'target' that is accepted by all 'filters'.
|
static <T> T |
DistanceUtils.getNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns the nearest object to 'target' that is accepted by all 'filters'.
|
static <T extends ILocated> |
DistanceUtils.getNearest2D(Collection<T> locations,
ILocated target,
DistanceUtils.IDistanceFilter... filters)
Returns the nearest (in 2D) object to 'target' that is accepted by all 'filters'.
|
static <T extends ILocated> |
DistanceUtils.getSecondNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IDistanceFilter... filters)
Returns the second nearest object to 'target' that is accepted by all 'filters'.
|
static <T> T |
DistanceUtils.getSecondNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns the second nearest object to 'target'.
|
static <T extends ILocated> |
DistanceUtils.getSecondNearest2D(Collection<T> locations,
ILocated target,
DistanceUtils.IDistanceFilter... filters)
Returns the second nearest (in 2D) object to 'target' that is accepted by all 'filters'.
|
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.