FScale

Transform calculus for 3D types.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/TransformCalculus3D.h"

Syntax

class FScale

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 -> represents a uniform scale.

  • FScale -> represents a 3D non-uniform scale.

  • FVector -> represents a 3D translation.

  • FRotator -> represents a pure rotation.

  • FQuat -> represents a pure rotation.

  • FMatrix -> represents a general 3D homogeneous transform. Represents a 3D non-uniform scale (to disambiguate from an FVector, 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

Name Description

Public function

FScale()

  1. initialize to an identity scale, 1.0.

Public function

FScale

(
    float InScale
)

  1. initialize from a uniform scale.

Public function

FScale

(
    const FVector& InScale
)

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

Functions

Name Description

Public function Const

const FScale

 

Concatenate

(
    const FScale& RHS
)

Concatenate two scales.

Public function Const

const FVecto...

 

GetVector()

Access to the underlying FVector that stores the scale.

Public function Const

const FScale

 

Inverse()

Invert the scale.

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