# GetSpriteShapeVertexX

## Description

Returns the X value of given vertex in the specified shape. This only applies to polygon and chain shapes. Shape IDs start at 1 for the first shape up to and including the value returned by GetSpriteNumShapes. Vertex IDs start at 1 for the first vertex up to and including the value returned by GetSpriteShapeNumVertices

## Definition

float GetSpriteShapeVertexX( iSpriteIndex, shapeID, vertex )

float agk::GetSpriteShapeVertexX( UINT iSpriteIndex, int shapeID, int vertex )

## Parameters

- iSpriteIndex - The ID of the sprite to check
- shapeID - The ID of the shape to check
- vertex - the ID of the vertex to check, vertices start at ID 1.