# i need an algorithm to make the points rotate according to its surroundings to make a smooth line. this is for generating rotation for some arrows. (the green dot should be at 45 degrees)