Navigation
API > API/Runtime > API/Runtime/Core
Represents a 2D non-uniform scale (to disambiguate from an FVector2D, which is used for translation)
| Name | TScale2 |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/TransformCalculus2D.h |
| Include Path | #include "Math/TransformCalculus2D.h" |
Syntax
template<typename T>
class TScale2
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScale2 () |
Ctor. initialize to an identity scale, 1.0. | Math/TransformCalculus2D.h | |
TScale2
(
T InScale |
Ctor. initialize from a uniform scale. | Math/TransformCalculus2D.h | |
TScale2
(
const UE::Math::TVector2< ArgType >& InScale |
Ctor. initialize from an FVector defining the 3D scale. | Math/TransformCalculus2D.h | |
TScale2
(
T InScaleX, |
Ctor. initialize from a non-uniform scale. | Math/TransformCalculus2D.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FReal | T | Math/TransformCalculus2D.h | |
| Vector2Type | UE::Math::TVector2< T > | Math/TransformCalculus2D.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Scale | Vector2Type | Underlying storage of the 2D scale. | Math/TransformCalculus2D.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Concatenate two scales. | Math/TransformCalculus2D.h | ||
const Vector2Type & GetVector() |
Access to the underlying FVector2D that stores the scale. | Math/TransformCalculus2D.h | |
TScale2 Inverse() |
Invert the scale. | Math/TransformCalculus2D.h | |
UE::Math::TVector2< ArgType > TransformPoint
(
const UE::Math::TVector2< ArgType >& Point |
Transform 2D Point | Math/TransformCalculus2D.h | |
UE::Math::TVector2< ArgType > TransformVector
(
const UE::Math::TVector2< ArgType >& Vector |
Transform 2D Vector | Math/TransformCalculus2D.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TScale2& Other |
Inequality. | Math/TransformCalculus2D.h | |
bool operator==
(
const TScale2& Other |
Equality. | Math/TransformCalculus2D.h |