RenderWare V2.1

Previous Page Index Next Page

RwV3d *

RwGetPolygonCenter(RwPolygon3d *polygon, RwV3d *center);

Description

Retrieves the center of the polygon in object space coordinates.

Arguments

polygon Pointer to the polygon.

center Pointer to point that will receive the polygon center (in object space coordinates).

Return Value

The argument center if successful, and NULL otherwise.

See Also

RwGetPolygonNormal()