Standard Geometric and Mathematical procs for every project [More]
To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://AbyssDragon.BasicMath##version=1Emulator users, in the BYOND pager go to File | Open Location and enter this URL:
This library contains basic geometric and mathemetical procs that I have found useful in nearly every project.
(used to be AbyssDragon.AbyssLibrary)
Here's what it contains:
getline() - uses a very fast algorithm to draw get a list of turfs in a line between two points
getcircle() - get a list of turfs forming a filled circle of any width around a center
getring() - get a list of turfs forming a ring of any width around a center
xrange() - extended version of range(), works at any range
midpoint() - find midpoint between two atoms
distance() - find true distance
get_steps() - a multi-step version of get_step()
cardinal() - gets a list all turfs in the four cardinal directions from a target
cardinal_stuff() - gets a list of all mobs/objs in the four cardinal directions from a target
allclear() - checks for dense objs/mobs in a turf
sign() returns the sign of a number
For news and updates, go to molotov.nu.
Return to AbyssDragon.TheAbyss
Copyright © 2017 BYOND Software. All rights reserved.