Index  

trap_SnapVector

Description

Round each component of a vector to the nearest interger (i.e. make fractional part 0).

Prototype

    void trap_SnapVector(
        float *v
    );

Parameters

Remarks

This simply removes the fractional part of each axis of v - a form of "snap to grid".
Its purpose is to save network bandwidth by exploiting the fact that delta compression will only transmit the changes in state of a struct.
A changing vector will change less frequently if only the integral part is taken into account.

Return value

This function has no return value.

See also

Author(s)

Timbo


QuakeIII trap calls reference