Example #1
0
 float top() const noexcept { return y() - shape.getRadius(); }
Example #2
0
 float bottom() const noexcept { return y() + shape.getRadius(); }
Example #3
0
 float left() const noexcept { return x() - shape.getRadius(); }
Example #4
0
 float right() const noexcept { return x() + shape.getRadius(); }
Example #5
0
 float bottom() { return y() + shape.getRadius(); }
Example #6
0
 float top() { return y() - shape.getRadius(); }
Example #7
0
 float right() { return x() + shape.getRadius(); }
Example #8
0
 float left() { return x() - shape.getRadius(); }
Example #9
0
int w_CircleShape_getRadius(lua_State *L)
{
	CircleShape *c = luax_checkcircleshape(L, 1);
	lua_pushnumber(L, c->getRadius());
	return 1;
}