MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / ParseSphere

Function ParseSphere

src/lua/LuaSpatial.cpp:209–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208
209static inline int ParseSphere(lua_State* L, SphereData& sphere) {
210 sphere.pos = luaL_checkfvec3(L, 1);
211 sphere.r = luaL_checkfloat(L, 4);
212 sphere.r2 = sphere.r * sphere.r;
213 return 4;
214}
215
216
217static inline int ParseCylinder(lua_State* L, CylinderData& cyl) {

Callers 3

GetPlayersInSphereMethod · 0.85
GetFlagsInSphereMethod · 0.85
GetShotsInSphereMethod · 0.85

Calls 2

luaL_checkfvec3Function · 0.85
luaL_checkfloatFunction · 0.85

Tested by

no test coverage detected