Skip to content

@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

PlacedPlane

point

MapPoint

Returns

MapCell | undefined

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.