{{newin|[[0.10.2]]|102|type=function}}
Gets the vertex that establishes a connection to the previous shape.

Setting next and previous EdgeShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape.

== Function ==
=== Synopsis ===
<source lang="lua">
x, y = EdgeShape:getPreviousVertex( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|x (nil)|The x-component of the vertex, or nil if [[EdgeShape:setPreviousVertex]] hasn't been called.}}
{{param|number|y (nil)|The y-component of the vertex, or nil if [[EdgeShape:setPreviousVertex]] hasn't been called.}}

== See Also ==
* [[parent::EdgeShape]]
* [[EdgeShape:setPreviousVertex]]
* [[EdgeShape:getNextVertex]]
[[Category:Functions]]
{{#set:Description=Gets the vertex that establishes a connection to the previous shape.}}
== Other Languages ==
{{i18n|EdgeShape:getPreviousVertex}}