1. Error (CS0103): The name 'xB' does not exist in the current context (line 83)
Do you might know what I am doing wrong?
I try to calculate the distance between two points, something very very simple.
With other things the data can be accessed.
you are using several variables you are declaring and assigning in the constructor.
If you want to use them in your methods you need to assign them in the constructor to a field/property of your class or feed them in your method as an input.