{{newin|[[0.8.0]]|080|type=function}}
Returns all points of the shape.

{{notice|A bug in [[0.8.0]] causes memory corruption if this function gets called on a ChainShape with more than 8 points.}}

== Function ==
=== Synopsis ===
<source lang="lua">
x1, y1, x2, y2, ... = ChainShape:getPoints( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|x1|The x-coordinate of the first point.}}
{{param|number|y1|The y-coordinate of the first point.}}
{{param|number|x2|The x-coordinate of the second point.}}
{{param|number|y2|The y-coordinate of the second point.}}

== See Also ==
* [[parent::ChainShape]]
[[Category:Functions]]
{{#set:Description=Returns all points of the shape.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|ChainShape:getPoints}}