mirror of
https://github.com/vrld/HC.git
synced 2024-11-18 12:54:23 +00:00
[Fix #23] polygon:getBBox should be polygon:bbox
This commit is contained in:
parent
df3e163f9a
commit
6c7c17ed9e
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user