{{newin|[[0.8.0]]|080|type=function}}
Returns the points of the bounding box for the transformed shape.

== Function ==
=== Synopsis ===
<source lang="lua">
topLeftX, topLeftY, bottomRightX, bottomRightY = Shape:computeAABB( tx, ty, tr, childIndex )
</source>
=== Arguments ===
{{param|number|tx|The translation of the shape on the x-axis.}}
{{param|number|ty|The translation of the shape on the y-axis.}}
{{param|number|tr|The shape rotation.}}
{{param|number|childIndex (1)|The index of the child to compute the bounding box of.}} 
=== Returns ===
{{param|number|topLeftX|The x position of the top-left point.}}
{{param|number|topLeftY|The y position of the top-left point.}}
{{param|number|bottomRightX|The x position of the bottom-right point.}}
{{param|number|bottomRightY|The y position of the bottom-right point.}}

== See Also ==
* [[parent::Shape]]
[[Category:Functions]]
{{#set:Description=Returns the points of the bounding box for the transformed shape.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Shape:computeAABB}}