21 return V1.X * V2.Y - V1.Y * V2.X;
48 T length =
Vector.Length();
121 T
Sign = Direction < 0 ? (T)-1 : (T)1;
156 return V.
X*V.
X + V.
Y*V.
Y + V.
Z*V.
Z;
170 T length =
Vector.Length();
171 if (length > Epsilon)
187 if (length > Epsilon)
218 return V1.X * V2.X + V1.Y * V2.Y + V1.Z * V2.Z;
225 V1.Y * V2.Z - V1.Z * V2.Y,
226 V1.Z * V2.X - V1.X * V2.Z,
227 V1.X * V2.Y - V1.Y * V2.X);
374template <
typename RealType>
377 os <<
Vec.X <<
" " <<
Vec.Y <<
" " <<
Vec.Z;
424template <
typename RealType>
427 os <<
Vec.X <<
" " <<
Vec.Y;
431template <
typename RealType>
434 os <<
Vec.X <<
" " <<
Vec.Y <<
" " <<
Vec.Z <<
" " <<
Vec.W;
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition MathUtil.h:150
static RealType Min3(const RealType A, const RealType B, const RealType C)
Definition MathUtil.h:277
static RealType Clamp(const RealType Value, const RealType ClampMin, const RealType ClampMax)
Definition MathUtil.h:222
static int32 Min3Index(const RealType A, const RealType B, const RealType C)
Definition MathUtil.h:283
static int32 Max3Index(const RealType A, const RealType B, const RealType C)
Definition MathUtil.h:258
static RealType Max3(const RealType A, const RealType B, const RealType C)
Definition MathUtil.h:252
static RealType Sqrt(const RealType Value)
Definition MathUtil.h:342
static RealType Abs(const RealType Value)
Definition MathUtil.h:215
static RealType ACos(const RealType Value)
Definition MathUtil.h:378
constexpr UE::Math::TVector< T > MakeUnitVector3(int32 Axis)
Definition VectorTypes.h:139
constexpr T MaxElement(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:298
T AngleR(const UE::Math::TVector2< T > &V1, const UE::Math::TVector2< T > &V2)
Definition VectorTypes.h:101
constexpr T MaxAbsElement(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:324
constexpr UE::Math::TVector2< T > PerpCW(const UE::Math::TVector2< T > &V)
Definition VectorTypes.h:26
T AngleD(const UE::Math::TVector2< T > &V1, const UE::Math::TVector2< T > &V2)
Definition VectorTypes.h:92
constexpr UE::Math::TVector2< T > GetXZ(const UE::Math::TVector< T > &V)
Definition VectorTypes.h:268
constexpr FLinearColor ToLinearColor(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:350
UE::Math::TVector< T > UnitCross(const UE::Math::TVector< T > &V1, const UE::Math::TVector< T > &V2)
Definition VectorTypes.h:231
constexpr int32 MaxAbsElementIndex(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:331
constexpr T DotPerp(const UE::Math::TVector2< T > &V1, const UE::Math::TVector2< T > &V2)
Definition VectorTypes.h:19
UE::Math::TVector< T > Blend3(const UE::Math::TVector< T > &A, const UE::Math::TVector< T > &B, const UE::Math::TVector< T > &C, const T &WeightA, const T &WeightB, const T &WeightC)
Definition VectorTypes.h:365
constexpr FColor ToFColor(const UE::Math::TVector4< T > &Vector)
Definition VectorTypes.h:398
constexpr int32 MaxElementIndex(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:305
T DistanceSquared(const UE::Math::TVector2< T > &V1, const UE::Math::TVector2< T > &V2)
Definition VectorTypes.h:82
constexpr UE::Math::TVector2< T > GetYZ(const UE::Math::TVector< T > &V)
Definition VectorTypes.h:274
UE::Math::TVector4< T > ToVector4(const FLinearColor &Color)
Definition VectorTypes.h:392
constexpr int32 MinAbsElementIndex(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:344
T SquaredLength(const UE::Math::TVector< T > &V)
Definition VectorTypes.h:154
T SignedAngleR(const UE::Math::TVector2< T > &V1, const UE::Math::TVector2< T > &V2)
Definition VectorTypes.h:110
constexpr UE::Math::TVector2< T > GetXY(const UE::Math::TVector< T > &V)
Definition VectorTypes.h:262
T Orient(const UE::Math::TVector2< T > &A, const UE::Math::TVector2< T > &B, const UE::Math::TVector2< T > &C)
Definition VectorTypes.h:33
constexpr int32 MinElementIndex(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:318
T Normalize(UE::Math::TVector2< T > &Vector, const T Epsilon=0)
Definition VectorTypes.h:46
constexpr T MinAbsElement(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:337
constexpr T MinElement(const UE::Math::TVector< T > &Vector)
Definition VectorTypes.h:311
constexpr bool IsNormalized(const UE::Math::TVector2< T > &Vector, const T Tolerance=TMathUtil< T >::ZeroTolerance)
Definition VectorTypes.h:40
FArchive & operator<<(FArchive &Ar, TBoxSphereBounds< float, float > &Bounds)
Definition BoxSphereBounds.h:396
Definition AdvancedWidgetsModule.cpp:13
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592
UE_FORCEINLINE_HINT T Length() const
Definition Vector2D.h:497
T Y
Definition Vector2D.h:52
T X
Definition Vector2D.h:49
T Y
Definition Vector4.h:46
T Z
Definition Vector4.h:49
T W
Definition Vector4.h:52
T X
Definition Vector4.h:43
T Z
Definition Vector.h:68
T Y
Definition Vector.h:65
T Length() const
Definition Vector.h:1722
T X
Definition Vector.h:62