B2d_shape_get_point_x - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Gets the x coordinate of the nth point of a given shape.
Parameter | Description |
---|---|
id | index of the shape |
pn | nth point of the shape to get |
double: Returns the x coordinate of the nth point of the given shape.
// demonstrates getting the x coordinate of the second point of a shape
px = b2d_shape_get_point_x(myshape, 1);
NOTOC