Returns the hotspot at the inputed point.
        
        :param      point | <QPoint>
        
        :return     <XNodeHotspot> || None
341774
def hotspotAt(self, point):
        
        for hotspot in self._hotspots:
            rect = hotspot.rect()
            if rect.contains(point):
                return hotspot
        return None
1056136
def public_point(self):
        """"""
        if self._public_point is None:
            self._public_point = Point(*public_key_to_coords(self._public_key))
        return self._public_point
1014278
def _sample_point(self, sample=None):
        
        samplepoint = sample.getSamplePoint() if sample else None
        data = {}
        if samplepoint:
            data = {'obj': samplepoint,
                    'id': samplepoint.id,
                    'title': samplepoint.Title(),
                    'url': samplepoint.absolute_url()}
        return data
1316446
function getNearestDataPoint(mouseX) {
            let adjustedMouseX = mouseX - margin.left,
                epsilon = xScale2.bandwidth(),
                nearest = [];

            layers.forEach(function (data) {
                let found = data.values.find((d2) => Math.abs(adjustedMouseX >= xScale(d2[nameLabel]) + xScale2(d2[groupLabel])) && Math.abs(adjustedMouseX - xScale2(d2[groupLabel]) - xScale(d2[nameLabel]) <= epsilon));

                if (found) {
                    found.values = data.values;
                    found.key = found.name;
                    nearest.push(found);
                }

            });

            return nearest.length ? nearest[0] : undefined;
        }
610441
def zero(self):
        
        return self.point(self.field.zero(), self.field.zero())
748951
def dropzoneAt(self, point):
        
        for dropzone in self._dropzones:
            rect = dropzone.rect()
            if ( rect.contains(point) ):
                return dropzone
        return None
969989
def get_grid_point_from_address(grid_address, mesh):
    """"""
    _set_no_error()

    return spg.grid_point_from_address(np.array(grid_address, dtype='intc'),
                                       np.array(mesh, dtype='intc'))
951696
def get_point_hash(self, point):
        
        return geohash.encode(point.latitude, point.longitude, self.precision)
712889
def B(self):
        '''
        
        '''
        return Point(self.maxX, self.minY, self.origin.z)
968720
@Override
	@Pure
	public final P getNearest(Point2D<?, ?> position) {
		final Pair<P, Double> data = getNearestData(position.getX(), position.getY());
		if (data != null) {
			return data.getKey();
		}
		return null;
	}
1049787
def findHotspot( self, name ):
        
        for hotspot in self._hotspots:
            if ( hotspot.name() == name ):
                return hotspot
        return None
455656
def getP1(self):
        
        return Point(self.center[0] - self.radius,
                     self.center[1] - self.radius)
1091508
def getP2(self):
        
        return Point(self.center[0] + self.radius,
                     self.center[1] + self.radius)
24758
def fetch_fence_point(self ,i):
        ''''''
        self.master.mav.fence_fetch_point_send(self.target_system,
                                                    self.target_component, i)
        tstart = time.time()
        p = None
        while time.time() - tstart < 3:
            p = self.master.recv_match(type='FENCE_POINT', blocking=False)
            if p is not None:
                break
            time.sleep(0.1)
            continue
        if p is None:
            self.console.error("Failed to fetch point %u" % i)
            return None
        return p
914540
def at(self, p):
        
        root = self.top_node
        if not root:
            return set()
        return root.search_point(p, set())
1110225
def datapoint(self, ind):
        
        if self.height is None:
            return self.data[ind]
        return self.data[ind, ...].copy()
784055
private static Point getCursorLocation()
    {
        try
        {
            final PointerInfo a = MouseInfo.getPointerInfo();
            final java.awt.Point b = a.getLocation();
            return new Point((int) b.getX(), (int) b.getY());
        }
        catch (final HeadlessException exception)
        {
            Verbose.exception(exception);
            return new Point();
        }
    }