Mathy stuff.
mjolnir.geometry.hypot(point) -> number
Returns hypotenuse of a line defined from 0,0 to point.
mjolnir.geometry.intersectionrect(rect1, rect2) -> rect3
Returns the intersection of two rects as a new rect.
mjolnir.geometry.point(x, y) -> point
Convenience function for creating a point-table.
mjolnir.geometry.rect(x, y, w, h) -> rect
Convenience function for creating a rect-table.
mjolnir.geometry.rectmidpoint(rect) -> point
Returns the midpoint of a rect.
mjolnir.geometry.rotateccw(point, aroundpoint, ntimes = 1) -> point
Rotates a point around another point N times.
mjolnir.geometry.size(w, h) -> size
Convenience function for creating a size-table.