UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Vector.h File Reference

Go to the source code of this file.

Classes

struct  UE::Math::TVectorConstInit
 
struct  UE::Math::TVector< T >
 
struct  TCanBulkSerialize< FVector3f >
 
struct  TIsPODType< FVector3f >
 
struct  TIsUECoreVariant< FVector3f >
 
struct  TCanBulkSerialize< FVector3d >
 
struct  TIsPODType< FVector3d >
 
struct  TIsUECoreVariant< FVector3d >
 

Namespaces

namespace  UE
 
namespace  UE::Math
 
namespace  UE::LWC
 

Functions

FArchiveUE::Math::operator<< (FArchive &Ar, TVector< float > &V)
 
FArchiveUE::Math::operator<< (FArchive &Ar, TVector< double > &V)
 
void UE::Math::operator<< (FStructuredArchive::FSlot Slot, TVector< float > &V)
 
void UE::Math::operator<< (FStructuredArchive::FSlot Slot, TVector< double > &V)
 
template<typename T , typename T2 UE_REQUIRES>
UE_FORCEINLINE_HINT TVector< T > UE::Math::operator* (T2 Scale, const TVector< T > &V)
 
template<typename T >
UE_FORCEINLINE_HINT uint32 UE::Math::GetTypeHash (const TVector< T > &Vector)
 
 DECLARE_INTRINSIC_TYPE_LAYOUT (FVector3f)
 
 DECLARE_INTRINSIC_TYPE_LAYOUT (FVector3d)
 
template<typename T >
UE::Math::TVector< T > ClampVector (const UE::Math::TVector< T > &V, const UE::Math::TVector< T > &Min, const UE::Math::TVector< T > &Max)
 
template<typename T , typename U >
ComputeSquaredDistanceFromBoxToPoint (const UE::Math::TVector< T > &Mins, const UE::Math::TVector< T > &Maxs, const UE::Math::TVector< U > &Point)
 
FVector3f UE::LWC::NarrowWorldPositionChecked (const FVector &WorldPosition)
 
FVector3f UE::LWC::NarrowWorldPositionChecked (const FVector::FReal InX, const FVector::FReal InY, const FVector::FReal InZ)
 

Variables

constexpr FVector::FReal UE::LWC::DefaultFloatPrecision = 1./16.
 

Function Documentation

◆ ClampVector()

template<typename T >
UE::Math::TVector< T > ClampVector ( const UE::Math::TVector< T > &  V,
const UE::Math::TVector< T > &  Min,
const UE::Math::TVector< T > &  Max 
)
inline

Component-wise clamp for TVector

◆ ComputeSquaredDistanceFromBoxToPoint()

template<typename T , typename U >
T ComputeSquaredDistanceFromBoxToPoint ( const UE::Math::TVector< T > &  Mins,
const UE::Math::TVector< T > &  Maxs,
const UE::Math::TVector< U > &  Point 
)
inline

Util to calculate distance from a point to a bounding box

Parameters
Mins3D Point defining the lower values of the axis of the bound box
Max3D Point defining the lower values of the axis of the bound box
Point3D position of interest
Returns
the distance from the Point to the bounding box.

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [1/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FVector3d  )

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [2/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FVector3f  )