public class KdNode extends Object
| Modifier and Type | Method and Description |
|---|---|
ISpaceObject |
getNearestObject(IVector2 point,
double radiusSquared)
Finds the object nearest to a given point within a search radius.
|
ISpaceObject |
getNearestObject(IVector2 point,
double radiusSquared,
IFilter filter)
Finds the object nearest to a given point within a search radius while filtering objects.
|
List<ISpaceObject> |
getNearestObjects(IVector2 point,
double radiusSquared,
IFilter filter)
Finds all objects within a given search radius.
|
public List<ISpaceObject> getNearestObjects(IVector2 point, double radiusSquared, IFilter filter)
point - Center of the search area.radiusSquared - Square of the search radius.filter - Object filter.public ISpaceObject getNearestObject(IVector2 point, double radiusSquared)
point - The point.radiusSquared - The squared search radius.public ISpaceObject getNearestObject(IVector2 point, double radiusSquared, IFilter filter)
point - The point.radiusSquared - The squared search radius.filter - Object filter.Copyright © 2012. All Rights Reserved.