UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TranslationMatrix.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Math/Vector.h"
7#include "Math/Plane.h"
8#include "Math/Matrix.h"
9
10namespace UE {
11namespace Math {
12
13template<typename T>
15 : public TMatrix<T>
16{
17public:
18
21
22 // Conversion to other type.
23 template<typename FArg UE_REQUIRES(!std::is_same_v<T, FArg>)>
25 : TMatrix<T>(From)
26 {
27 }
28
31 {
33 }
34};
35
36template<typename T>
38 : TMatrix<T>(
39 TPlane<T>(1.0f, 0.0f, 0.0f, 0.0f),
40 TPlane<T>(0.0f, 1.0f, 0.0f, 0.0f),
41 TPlane<T>(0.0f, 0.0f, 1.0f, 0.0f),
42 TPlane<T>(Delta.X, Delta.Y,Delta.Z,1.0f)
43 )
44{ }
45
46} // namespace Math
47} // namespace UE
48
50
51template<> struct TIsUECoreVariant<FTranslationMatrix44f> { enum { Value = true }; };
52template<> struct TIsUECoreVariant<FTranslationMatrix44d> { enum { Value = true }; };
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define X(Name, Desc)
Definition FormatStringSan.h:47
#define UE_DECLARE_LWC_TYPE(...)
Definition LargeWorldCoordinates.h:27
Definition AdvancedWidgetsModule.cpp:13
Definition IsUECoreType.h:19
@ Value
Definition IsUECoreType.h:20
Definition Matrix.h:43
Definition Plane.h:35
Definition TranslationMatrix.h:16
TTranslationMatrix(const TTranslationMatrix< FArg > &From)
Definition TranslationMatrix.h:24
static TMatrix< T > Make(TVector< T > const &Delta)
Definition TranslationMatrix.h:30
TTranslationMatrix(const TVector< T > &Delta)
Definition TranslationMatrix.h:37
Definition Vector.h:51