b2d_shape_get_edge_point_x(id,en,pn)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the x coordinate of the nth point of the nth edge of a given shape.
Note: This function is only applicate for chain or loop shapes.

Parameters

Parameter Data Type Description
id integer index of the shape
en integer nth edge of the shape
pn integer nth point of the edge to get the x coordinate of

Return Values

double: Returns the x coordinate of the nth point of the nth edge of the given shape.

Example Call

// demonstrates getting the x coordinate of the second point of the third edge of a shape
px = b2d_shape_get_edge_point_x(myshape, 2, 1);