Calchypotenuse - EDukeWiki

# Calchypotenuse

From EDukeWiki

calchypotenuse <returnvar> <x> <y>

Calculates the value of √x2 + y2 and assigns it to the gamevar <returnvar>.

Internally, this command has special coding to use 64-bit integers in its calculations so the in-process square (before the root is taken) does not overflow.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Calchypotenuse&oldid=11472"
Categories:

- EDuke32 specific commands
- Gamevar manipulation