Clamp Vector Size

Clamp Vector Size

Choose your operating system:

Windows

macOS

Linux

Create a copy of this vector, with its magnitude/size/length clamped between Min and Max.

Target is Kismet Math Library

Clamp Vector Size
A
X0
Y 0
Z 0
Min
Max
Return Value
X0
Y 0
Z 0

Inputs

A
Vector
Min
Float (double-precision)
Max
Float (double-precision)

Outputs

Return Value
Vector

Create a copy of this vector, with its magnitude/size/length clamped between Min and Max.