Vector Bounded to Cube

Vector Bounded to Cube

Choose your operating system:

Windows

macOS

Linux

Get a copy of this vector, clamped inside of an axis aligned cube centered at the origin.

Target is Kismet Math Library

Vector Bounded to Cube
In Vect
X0
Y 0
Z 0
In Radius
Return Value
X0
Y 0
Z 0

Inputs

In Vect
Vector
In Radius
Float (single-precision)

Half size of the cube (or radius of sphere circumscribed in the cube).

Outputs

Return Value
Vector

A copy of this vector, bound by cube.