C# library to detect the position of physical objects on the screen

Hello Guys, I am currently looking for a C# library or solution that will allow me to locate the exact position of a physical object on the screen in my program. Below is a screenshot of how it should be calculated:

190768-obraz-2022-01-04-214921.png

3 points A B C. The distance between A B and point C would be defined by default in the program as a pattern. However I do not know what solutions to use to recognize these points on the screen once I place an object.

Scenario: I run the program. On the tablet screen I place an object with three bases which are conductive. The program recognizes the distance between A and B and the point C relative to these two and pops up a window, that the placed object on the screen is consistent with the one defined natively in the code.

Ok, I don’t fully get what you are trying to do here, but here are some things that might help you:

This will give you the position of your objects in screen coordinates.

This gives you positions where your screen is being touched. It doesn’t matter if it’s your finger or another object, all that matters is that your tablet recognizes the touch. Of course for 3 points the hardware must actually be capable of that, but I think it’s a standard in new tablets. I remember old devices were only recognizing one touch at a time

Now just check if those touch positions are close enough to your predefined points and you’re done