Vector Clamp Size 2D

Vector Clamp Size 2D

Choose your operating system:

Windows

macOS

Linux

Create a copy of this vector, with the 2D magnitude/size/length clamped between Min and Max. Z is unchanged.

Target is Kismet Math Library

Vector Clamp Size 2D
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 the 2D magnitude/size/length clamped between Min and Max. Z is unchanged.