Difference between revisions of "Shape:getBoundingBox"
m (1 revision: Importing from potato (again).) |
m |
||
Line 1: | Line 1: | ||
− | |||
Gets the bounding box of the shape. | Gets the bounding box of the shape. | ||
This function can be used in a nested fashion with [[love.graphics.polygon]]. | This function can be used in a nested fashion with [[love.graphics.polygon]]. | ||
Line 18: | Line 17: | ||
{{param|number|x4|The x-component of the fourth vertex.}} | {{param|number|x4|The x-component of the fourth vertex.}} | ||
{{param|number|y4|The y-component of the fourth vertex.}} | {{param|number|y4|The y-component of the fourth vertex.}} | ||
+ | === Notes === | ||
+ | Returns vertexes from the top-left in a counterclockwise fashion. | ||
== See Also == | == See Also == | ||
* [[parent::Shape]] | * [[parent::Shape]] |
Revision as of 23:38, 26 February 2010
Gets the bounding box of the shape. This function can be used in a nested fashion with love.graphics.polygon.
Function
Synopsis
x1, y1, x2, y2, x3, y3, x4, y4 = Shape:getBoundingBox( )
Arguments
None.
Returns
number x1
- The x-component of the first vertex.
number y1
- The y-component of the first vertex.
number x2
- The x-component of the second vertex.
number y2
- The y-component of the second vertex.
number x3
- The x-component of the third vertex.
number y3
- The y-component of the third vertex.
number x4
- The x-component of the fourth vertex.
number y4
- The y-component of the fourth vertex.
Notes
Returns vertexes from the top-left in a counterclockwise fashion.