Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/TransformCalculus3D.h |
Include | #include "Math/TransformCalculus3D.h" |
Syntax
template<typename T>
class TScale
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TScale () |
Ctor. initialize to an identity scale, 1.0. | |
![]() |
TScale
(
T InScale |
Ctor. initialize from a uniform scale. | |
![]() |
TScale
(
const UE::Math::TVector< VType >& InScale |
Ctor. initialize from an UE::Math::TVector |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const TScale | Concatenate
(
const TScale& RHS |
Concatenate two scales. |
![]() ![]() |
const Vector3Type & | GetVector () |
Access to the underlying UE::Math::TVector |
![]() ![]() |
const TScale | Inverse () |
Invert the scale. |
Typedefs
Name | Description |
---|---|
Vector3Type |