closest_item


Description:

public SchematicItem? closest_item (int x, int y, double distance)

Find the closest item the the given coordinates

The x and y coordinates are user coordinates. The distance is in device coordinates.

Parameters:

x

The x coordinate of the point

y

The y coordinate of the point

distance

The maximum distance for items

Returns:

The closest item or null if none