Navigation
API > API/Runtime > API/Runtime/GeometryCore
Description
Snap Value to steps of Increment (centered at 0, ie steps are -Increment, 0, Increment, 2*Increment, ...). Optional Offset can be used to snap relative value.
| Name | UE::Geometry::SnapToIncrement |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/VectorUtil.h |
| Include Path | #include "VectorUtil.h" |
namespace UE
{
namespace Geometry
{
template<typename RealType>
RealType UE::Geometry::SnapToIncrement
(
RealType Value,
RealType Increment,
RealType Offset
)
}
}