Function
Shape:getBoundingBox( )
Gets the bounding box of the shape. This function can be used in a nested fashion with love.graphics.polygon.
Synopsis
x1, y1, x2, y2, x3, y3, x4, y4 = Shape:getBoundingBox( )
Returns
x1 number The x-component of the first vertex.
y1 number The y-component of the first vertex.
x2 number The x-component of the second vertex.
y2 number The y-component of the second vertex.
x3 number The x-component of the third vertex.
y3 number The y-component of the third vertex.
x4 number The x-component of the fourth vertex.
y4 number The y-component of the fourth vertex.
Copyright © 2006-2010 LÖVE Development Team.