UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Transform.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
9
#include "
CoreTypes.h
"
10
#include "
HAL/PreprocessorHelpers.h
"
11
#include "
Math/MathFwd.h
"
// IWYU pragma: export
12
#include "
Math/Quat.h
"
13
#include "
Math/ScalarRegister.h
"
14
#include "
Math/TransformNonVectorized.h
"
15
#include "
Math/TransformVectorized.h
"
16
#include "
Misc/LargeWorldCoordinates.h
"
17
#include "
Misc/LargeWorldCoordinatesSerializer.h
"
18
#include "
Serialization/MemoryLayout.h
"
19
#include "
Serialization/StructuredArchiveAdapters.h
"
20
#include "
Templates/IsUECoreType.h
"
21
#include "
UObject/NameTypes.h
"
22
#include "
UObject/UnrealNames.h
"
23
24
UE_DECLARE_LWC_TYPE
(
Transform
, 3);
25
class
FArchive
;
26
class
FMemoryImageWriter
;
27
class
FMemoryUnfreezeContent
;
28
class
FPointerTableBase
;
29
class
FSHA1
;
30
template
<
typename
T>
struct
TCanBulkSerialize
;
31
template
<
typename
T>
struct
TIsPODType
;
32
33
template
<>
struct
TIsPODType
<
FTransform3f
> {
enum
{
Value
=
true
}; };
34
template
<>
struct
TIsPODType
<
FTransform3d
> {
enum
{
Value
=
true
}; };
35
template
<>
struct
TIsUECoreVariant
<
FTransform3f
> {
enum
{
Value
=
true
}; };
36
template
<>
struct
TIsUECoreVariant
<
FTransform3d
> {
enum
{
Value
=
true
}; };
37
template
<>
struct
TCanBulkSerialize
<
FTransform3f
> {
enum
{
Value
=
false
}; };
// LWC_TODO: this was never defined before, should it be true or false?
38
template
<>
struct
TCanBulkSerialize
<
FTransform3d
> {
enum
{
Value
=
false
}; };
39
DECLARE_INTRINSIC_TYPE_LAYOUT
(
FTransform3f
);
40
DECLARE_INTRINSIC_TYPE_LAYOUT
(
FTransform3d
);
41
42
namespace
UE::Math
43
{
50
template
<
typename
T>
51
inline
uint32
GetTypeHash
(
const
TTransform<T>
&
Transform
)
52
{
53
uint32
Hash
=
GetTypeHash
(
Transform
.GetTranslation());
54
Hash
=
HashCombineFast
(
Hash
,
GetTypeHash
(
Transform
.GetRotation()));
55
Hash
=
HashCombineFast
(
Hash
,
GetTypeHash
(
Transform
.GetScale3D()));
56
57
return
Hash
;
58
}
59
60
}
ECbFieldType::Hash
@ Hash
EConstraintType::Transform
@ Transform
CoreTypes.h
IsUECoreType.h
LargeWorldCoordinatesSerializer.h
LargeWorldCoordinates.h
UE_DECLARE_LWC_TYPE
#define UE_DECLARE_LWC_TYPE(...)
Definition
LargeWorldCoordinates.h:27
MathFwd.h
MemoryLayout.h
DECLARE_INTRINSIC_TYPE_LAYOUT
#define DECLARE_INTRINSIC_TYPE_LAYOUT(T)
Definition
MemoryLayout.h:760
NameTypes.h
PreprocessorHelpers.h
Quat.h
ScalarRegister.h
StructuredArchiveAdapters.h
TransformNonVectorized.h
TransformVectorized.h
HashCombineFast
constexpr uint32 HashCombineFast(uint32 A, uint32 B)
Definition
TypeHash.h:74
UnrealNames.h
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
FArchive
Definition
Archive.h:1208
FMemoryImageWriter
Definition
MemoryImageWriter.h:14
FMemoryUnfreezeContent
Definition
MemoryImageWriter.h:78
FPointerTableBase
Definition
MemoryImage.h:49
FSHA1
Definition
SecureHash.h:314
UE::Math
Definition
Sphere.cpp:10
UE::Math::GetTypeHash
uint32 GetTypeHash(const TBox< T > &Box)
Definition
Box.h:1008
TCanBulkSerialize
Definition
Array.h:45
TCanBulkSerialize::Value
@ Value
Definition
Array.h:46
TIsPODType
Definition
IsPODType.h:12
TIsPODType::Value
@ Value
Definition
IsPODType.h:13
TIsUECoreVariant
Definition
IsUECoreType.h:19
TIsUECoreVariant::Value
@ Value
Definition
IsUECoreType.h:20
UE::Math::TTransform< float >
Engine
Source
Runtime
Core
Public
Math
Transform.h
Generated by
1.9.8