C4 Engine
C4 Engine API Documentation

Plane3D::Unitize

Defined in:  TSPlane3D.h
Unitizes the weight of a plane.
Prototype

Plane3D& Unitize(void);

Description
The Unitize function multiplies a plane by the inverse magnitude of its weight, which is the 3D bivector given by its x, y, and z coordinates. After calling this function, the plane has a unit-length normal. If the x, y, and z coordinates are all zero, then the result is undefined.

The return value is a reference to the plane object.