diff --git a/TextureRectBricks.gd b/TextureRectBricks.gd index f885553..591a4a3 100644 --- a/TextureRectBricks.gd +++ b/TextureRectBricks.gd @@ -289,9 +289,6 @@ func bricks_sb(uv : Vector2, count : Vector2, repeat : float, offset : float) -> return Color(corner.x / c.x, corner.y / c.y, (corner.x + size.x) / c.x, (corner.y + size.y) / c.y) - -#from https://www.geeksforgeeks.org/modulus-two-float-double-numbers/ -#there is probably a better way of doing this func modf(x : float, y : float) -> float: return x - y * floor(x / y) diff --git a/TextureRectShape.gd b/TextureRectShape.gd index 590d700..bbedc37 100644 --- a/TextureRectShape.gd +++ b/TextureRectShape.gd @@ -130,9 +130,6 @@ func shape_rays(uv : Vector2, sides : float, size : float, edge : float) -> floa return clamp(min((size - angle) / edge, angle / edge), 0.0, 1.0); - -#from https://www.geeksforgeeks.org/modulus-two-float-double-numbers/ -#there is probably a better way of doing this func modf(x : float, y : float) -> float: return x - y * floor(x / y)