math find heading to a point
import math
def get_heading_to(x2, y2):
x1 = 0
y1 = 0
print(math.atan2(-x2, -y2)) # atan2 is also known as the tangent function with 2 variables
get_heading_to(100, 100)
math find heading to a point
import math
def get_heading_to(x2, y2):
x1 = 0
y1 = 0
print(math.atan2(-x2, -y2)) # atan2 is also known as the tangent function with 2 variables
get_heading_to(100, 100)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us