If you have an iPhone 12 Pro or iPad Pro 2020 (the devices with a built-in LIDAR scanner), just download any AR app from the app store. The AR app I know of that is preinstalled by default is "measure", which lets you draw a 3D line in the room visible in the camera display, showing how long that line would be in real life.