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