@mega-yfue/eufy-sdk / cellAtPoint
Function: cellAtPoint()
ts
function cellAtPoint(plane, point): MapCell | undefined;Which cell covers a world position, or undefined when the position falls outside the plane.
Both axes count UP: a larger y is a larger row. The vendor's own renderer flips the image vertically before drawing it, which is a display choice and not a property of the data — reading the flip back into the coordinates would put every lookup in the wrong half of the map.
undefined also when the plane has no resolution, because there is then no scale to divide by and a guessed one silently misplaces every lookup.
Parameters
plane
point
Returns
MapCell | undefined