C4 Engine
C4 Engine API Documentation

Box2D::Calculate

Defined in:  TSBox.h
Calculates a bounding box for a set of 2D vertices.
Prototype

void Calculate(int32 vertexCount, const Point2D *vertex);

Parameters
vertexCount The number of vertices. This must be at least 1.
vertex A pointer to the array of vertex positions.
Description
The Calculate function calculates the aligned bounding box for an array of vertices.