Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to get the angle between two points by only their x,y

def get_angle_between_two_points(point1,point2):

        angle = 360-math.atan2(point2[1]-point1[1],point2[0]-point1[0])*180/math.pi
        
        return angle
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #angle #points
ADD COMMENT
Topic
Name
5+3 =