input the starting position and end position to make a right triangle which the red side of the triangle is a vector and the purple sides are used in the calculation of the direction of the vector which is at the top of the screen