I am building an app to track distance between 2 points on a football field.
I know how long a field is in reality, let's say 100 meters for convenience. I want to be able to measure a distance between 2 points, regardless of screen size (it needs to be translated to real measurements, such as meters or yards).
The image asset will be set as background for a Container. Currently, I can track the location of the points where I place the initial position and the final position, but this only translates in X and Y coordinates, as per my screen.
How can I make this measurement independent of the screen and convert it to meters accurately and consistently, regardless of the device used?
Thanks!
