C4 Engine
C4 Engine API Documentation

BoundingSphere::Calculate

Defined in:  C4Sphere.h
Calculates a bounding sphere for a set of vertices.
Prototype

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

Parameters
vertexCount The number of vertices.
vertex A pointer to the array of vertex positions.
Description
The Calculate function calculates a good bounding sphere for an array of vertices.