Skip to content

B2d_shape_get_point_x

hugh greene edited this page Jun 20, 2022 · 1 revision

Description

Gets the x coordinate of the nth point of a given shape.

Parameters

Parameter Description
id index of the shape
pn nth point of the shape to get

Return Values

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

Example Call

// demonstrates getting the x coordinate of the second point of a shape
px = b2d_shape_get_point_x(myshape, 1);

NOTOC

Clone this wiki locally