How to get the distance between two points using the LiDAR 15.4?

I'm able to get the distance between two points using ARKit easy but with AVFoundation the data doesn't make sense. I get wrong values Any help

thank you!

BTW I project two points as point clouds and get the distance in ARKit, but with AV I get wrong values

How to get the distance between two points using the LiDAR 15.4?
 
 
Q