Skip to content

B2d_shape_remove_point

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

Description

Removes the given point from the given shape.

Parameters

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

Return Values

void: This function does not return anything.

Example Call

// demonstrates removing the last point of a shape
b2d_shape_add_point(myshape, width, -height);
b2d_shape_add_point(myshape, width, height);
b2d_shape_add_point(myshape, -width, height);
b2d_shape_remove_point(myshape, 2);

NOTOC

Clone this wiki locally