Added comment and type annotations to YTDServerFactory.func
This commit is contained in:
parent
631de995dd
commit
1833f8c0c9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue