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