Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/VectorTraits
Description
Returns true if A is strictly closer to Target than B is. Implementation note: we don't use the standard distance-based traits to have a more efficient check here.
| Name | IsCloserTo |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataAttributeTraits.h |
| Include Path | #include "Metadata/PCGMetadataAttributeTraits.h" |
static bool IsCloserTo
(
const T & A,
const T & B,
const T & Target
)