/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h
Get a copy of this vector, clamped inside of the specified axis aligned cube.
static FVector Vector_BoundedToBox ( FVector InVect, FVector InBoxMin, FVector InBoxMax )