mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added ChainShape:getNext/PreviousVertex (see issue #1191). Thanks airstruck!
This commit is contained in:
@@ -63,6 +63,30 @@ public:
|
||||
**/
|
||||
void setPreviousVertex(float x, float y);
|
||||
|
||||
/**
|
||||
* Returns whether a vertex that follows the last vertex exists.
|
||||
* @returns True if specified vertex exists, else false.
|
||||
**/
|
||||
bool hasNextVertex() const;
|
||||
|
||||
/**
|
||||
* Returns whether a vertex that precedes the first vertex exists.
|
||||
* @returns True if specified vertex exists, else false.
|
||||
**/
|
||||
bool hasPreviousVertex() const;
|
||||
|
||||
/**
|
||||
* Returns the vertex that follows the last vertex.
|
||||
* @returns The specified vertex.
|
||||
**/
|
||||
b2Vec2 getNextVertex() const;
|
||||
|
||||
/**
|
||||
* Returns the vertex that precedes the first vertex.
|
||||
* @returns The specified vertex.
|
||||
**/
|
||||
b2Vec2 getPreviousVertex() const;
|
||||
|
||||
/**
|
||||
* Returns a child EdgeShape.
|
||||
* @param index The index of the child shape.
|
||||
|
||||
Reference in New Issue
Block a user