RealDocs

UKismetMathLibrary::Conv_IntPointToVector2D

function Engine Blueprint Since unknown
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPureUFUNCTION

Description

Converts an FIntPoint to an FVector2D by casting its integer X and Y components to double. Used when you need floating-point precision after integer grid calculations.

Caveats & Gotchas

  • The conversion is lossless for any int32 value because double has 53-bit mantissa precision, comfortably covering the full int32 range. However, subsequent floating-point arithmetic on the result is still subject to normal floating-point rounding.
  • This is a BlueprintAutocast, so in Blueprint it triggers automatically when you connect an IntPoint pin to a Vector2D pin — you won't see an explicit node unless you search for it by name.

Signature

static UE_INL_API FVector2D Conv_IntPointToVector2D(FIntPoint InIntPoint);

Parameters

Name Type Description Default
InIntPoint FIntPoint The integer 2D point to convert.

Return Type

FVector2D

Example

Convert grid tile position to UV-like float coordinates C++
FIntPoint TileIndex(4, 7);
FVector2D TileFloat = UKismetMathLibrary::Conv_IntPointToVector2D(TileIndex);
// TileFloat == (4.0, 7.0)

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.