Added a new GetDevicesInFront fucntion that is used to improve the getDevicesWithIntersectionPoint fucntion