Navigation
API > API/Runtime > API/Runtime/Core
Transform calculus for 3D types. Since UE4 already has existing 3D transform types, this is mostly a set of adapter overloads for the primitive operations requires by the transform calculus framework.
The following types are adapted.
- float/double -> represents a uniform scale.
- TScale
-> represents a 3D non-uniform scale. - UE::Math::TVector
-> represents a 3D translation. - UE::Math::TRotator
-> represents a pure rotation. - UE::Math::TQuat
-> represents a pure rotation. - UE::Math::TMatrix
-> represents a general 3D homogeneous transform. Represents a 3D non-uniform scale (to disambiguate from an UE::Math::TVector , which is used for translation).
Serves as a good base example of how to write a class that supports the basic transform calculus operations.
| Name | TScale |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/TransformCalculus3D.h |
| Include Path | #include "Math/TransformCalculus3D.h" |
Syntax
template<typename T>
class TScale
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScale () |
Ctor. initialize to an identity scale, 1.0. | Math/TransformCalculus3D.h | |
TScale
(
T InScale |
Ctor. initialize from a uniform scale. | Math/TransformCalculus3D.h | |
TScale
(
const UE::Math::TVector< VType >& InScale |
Ctor. initialize from an UE::Math::TVector |
Math/TransformCalculus3D.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Vector3Type | UE::Math::TVector< T > | Math/TransformCalculus3D.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Scale | Vector3Type | Underlying storage of the 3D scale. | Math/TransformCalculus3D.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Concatenate two scales. | Math/TransformCalculus3D.h | ||
const Vector3Type & GetVector() |
Access to the underlying UE::Math::TVector |
Math/TransformCalculus3D.h | |
TScale Inverse() |
Invert the scale. | Math/TransformCalculus3D.h |