[Fix #23] polygon:getBBox should be polygon:bbox

This commit is contained in:
Matthias Richter 2013-02-09 22:07:31 +01:00
parent df3e163f9a
commit 6c7c17ed9e
2 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ function Polygon:clone()
end
-- get bounding box
function Polygon:getBBox()
function Polygon:bbox()
local ulx,uly = self.vertices[1].x, self.vertices[1].y
local lrx,lry = ulx,uly
for i=2,#self.vertices do

View File

@ -281,11 +281,11 @@ function PointShape:outcircle()
end
function ConvexPolygonShape:bbox()
return self._polygon:getBBox()
return self._polygon:bbox()
end
function ConcavePolygonShape:bbox()
return self._polygon:getBBox()
return self._polygon:bbox()
end
function CircleShape:bbox()