FScale2D

Represents a 2D non-uniform scale (to disambiguate from an [FVector2D](API\Runtime\Core\Math\FVector2D), which is used for translation)

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/TransformCalculus2D.h

Include

#include "Math/TransformCalculus2D.h"

Syntax

class FScale2D

Remarks

Represents a 2D non-uniform scale (to disambiguate from an FVector2D, which is used for translation)

Constructors

Name Description

Public function

FScale2D()

  1. initialize to an identity scale, 1.0.

Public function

FScale2D

(
    float InScale
)

  1. initialize from a uniform scale.

Public function

FScale2D

(
    const FVector2D& InScale
)

  1. initialize from an FVector defining the 3D scale.

Public function

FScale2D

(
    float InScaleX,
    float InScaleY
)

  1. initialize from a non-uniform scale.

Functions

Name Description

Public function Const

FScale2D

 

Concatenate

(
    const FScale2D& RHS
)

Concatenate two scales.

Public function Const

const FVecto...

 

GetVector()

Access to the underlying FVector2D that stores the scale.

Public function Const

FScale2D

 

Inverse()

Invert the scale.

Public function Const

FVector2D

 

TransformPoint

(
    const FVector2D& Point
)

Transform 2D Point

Public function Const

FVector2D

 

TransformVector

(
    const FVector2D& Vector
)

Transform 2D Vector

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FScale2D& Other
)

Inequality.

Public function Const

bool

 

operator==

(
    const FScale2D& Other
)

Equality.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss