How do you write the Pythagoras equation in python? Is it written as shown below or not. If not please describe why this is incorrect and how I can correct it.
math.sqrt(XLength^2+YLength^2)
How do you write the Pythagoras equation in python? Is it written as shown below or not. If not please describe why this is incorrect and how I can correct it.
math.sqrt(XLength^2+YLength^2)
Copyright © 2021 Jogjafile Inc.
In pygame you can use
pygame.math.Vector2.length:In general you can use
math.hypot:^however is the Bitwise Exclusive Or operator (see opertor). The Exponentiation operator is**: