FVector::BoundToCube

Get a copy of this vector, clamped inside of a cube.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector.h

Include

#include "Math/Vector.h"

Syntax

FVector BoundToCube
(
    float Radius
) const

Remarks

Get a copy of this vector, clamped inside of a cube.

Returns

A copy of this vector, bound by cube.

Parameters

Parameter

Description

Radius

Half size of the cube.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss