LimitVector

LimitVector limits the magnitude of a vector. This routine is useful when you want to limit a movement of a sprite.

Pascal
In version 1.0: (Renamed to LimitMagnitude in version 1.1)

C#
In version 1.0: (Renamed to LimitMagnitude in version 1.1)

Visual Basic .NET
In version 1.0: (Renamed to LimitMagnitude in version 1.1)

Visual Basic 6
In version 1.0: (Renamed to LimitMagnitude in version 1.1)

Also See

 * Vector
 * Sprite
 * CreateVector
 * ChopVector
 * LimitMagnitude