Press the green flag and get instant calculations! I used: d=√(x2-x1)²+(y2-y1)² in order to get the distance. I measured it to cm because why not! 2 Things to note: 1. It had to be rounded otherwise there would be constant NaN's 2. You will occasionally get no outcome, this is due to the number being exactly 0 from the round, I decided to make sure it ignores those findings.
Point A is the starting point of the line currently being drawn Point B is the ending point of the line currently being drawn X's = (x2-x1)² Y's = (y2-y1)² Lengths = √X's+Y's PenC = Pen color; it tells you what the current color is being used