static public bool checkType(IntPtr l, int p, out Bounds v) { float cx, cy, cz, ex, ey, ez; if (LuaDLL.luaS_checkBounds(l, p, out cx, out cy, out cz, out ex, out ey, out ez) != 0) { throw new Exception(string.Format("Invalid Bounds argument at {0}", p)); } v = new Bounds(new Vector3(cx, cy, cz), new Vector3(ex, ey, ez)); return(true); }