# HG changeset patch # User Wuzzy # Date 1525297778 -3600 # Node ID fef74f26cab9e913ad51f058a38b410676040676 # Parent d92ed327253380f5b253af5eef9a405f06b8f458 LuaLibraryUtils: headings diff -r d92ed3272533 -r fef74f26cab9 LuaLibraryUtils.wiki --- a/LuaLibraryUtils.wiki Wed May 02 22:48:07 2018 +0100 +++ b/LuaLibraryUtils.wiki Wed May 02 22:49:38 2018 +0100 @@ -1,17 +1,17 @@ #summary Lua library documentation: Utils #labels LuaLibrary -== Lua library: `Utils` == += Lua library: `Utils` = **NOTE: Documentation of this library is incomplete, some functions are still undocumented.** This library includes miscellaneous functions to use, they are all independent of each other and can be used everywhere. -=== `gearIsInBox(gear, x, y, w, h)` === +== `gearIsInBox(gear, x, y, w, h)` == Returns whether the gear is inside (centre point of the gear) a box with x and y as the top left corner and having the width and height of w and h respectively. -=== `gearIsInCircle(gear, x, y, r, useRadius)` === +== `gearIsInCircle(gear, x, y, r, useRadius)` == Returns whether the gear is inside a circle with x and y being the centre point and r being the radius of the circle. The boolean useRadius determine whether only the centre point of the gear will be used or the radius of the gear will be checked too. \ No newline at end of file