Added comment and type annotations to YTDServerFactory.func

This commit is contained in:
Kyler Olsen 2024-04-24 13:05:00 -06:00
parent 631de995dd
commit 1833f8c0c9
1 changed files with 2 additions and 1 deletions

View File

@ -484,7 +484,8 @@ class YTDServerFactory(ServerFactory):
return YTDServerFactory.func(x,y,z)
@staticmethod
def func(x, y, z):
# This function implements the equation defining the terrain.
def func(x: int, y: int, z: int):
a = 100
b = 100
if x*x/a - z*z/b > y + 3: