Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TScale2< T > Class Template Reference

#include <TransformCalculus2D.h>

Public Types

using FReal = T
 
using Vector2Type = UE::Math::TVector2<T>
 

Public Member Functions

 TScale2 ()
 
 TScale2 (T InScale)
 
 TScale2 (T InScaleX, T InScaleY)
 
template<typename ArgType >
 TScale2 (const UE::Math::TVector2< ArgType > &InScale)
 
template<typename ArgType >
UE::Math::TVector2< ArgType > TransformPoint (const UE::Math::TVector2< ArgType > &Point) const
 
template<typename ArgType >
UE::Math::TVector2< ArgType > TransformVector (const UE::Math::TVector2< ArgType > &Vector) const
 
TScale2 Concatenate (const TScale2 &RHS) const
 
TScale2 Inverse () const
 
bool operator== (const TScale2 &Other) const
 
bool operator!= (const TScale2 &Other) const
 
const Vector2TypeGetVector () const
 

Private Attributes

Vector2Type Scale
 

Detailed Description

template<typename T>
class TScale2< T >

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

Definition at line 111 of file TransformCalculus2D.h.

Member Typedef Documentation

◆ FReal

template<typename T >
using TScale2< T >::FReal = T

Definition at line 116 of file TransformCalculus2D.h.

◆ Vector2Type

template<typename T >
using TScale2< T >::Vector2Type = UE::Math::TVector2<T>

Definition at line 117 of file TransformCalculus2D.h.

Constructor & Destructor Documentation

◆ TScale2() [1/4]

template<typename T >
TScale2< T >::TScale2 ( )
inline

Ctor. initialize to an identity scale, 1.0.

Definition at line 120 of file TransformCalculus2D.h.

◆ TScale2() [2/4]

template<typename T >
TScale2< T >::TScale2 ( T InScale)
inlineexplicit

Ctor. initialize from a uniform scale.

Definition at line 122 of file TransformCalculus2D.h.

◆ TScale2() [3/4]

template<typename T >
TScale2< T >::TScale2 ( T InScaleX,
T InScaleY )
inlineexplicit

Ctor. initialize from a non-uniform scale.

Definition at line 124 of file TransformCalculus2D.h.

◆ TScale2() [4/4]

template<typename T >
template<typename ArgType >
TScale2< T >::TScale2 ( const UE::Math::TVector2< ArgType > & InScale)
inlineexplicit

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

Definition at line 127 of file TransformCalculus2D.h.

Member Function Documentation

◆ Concatenate()

template<typename T >
TScale2 TScale2< T >::Concatenate ( const TScale2< T > & RHS) const
inline

Concatenate two scales.

Definition at line 144 of file TransformCalculus2D.h.

◆ GetVector()

template<typename T >
const Vector2Type & TScale2< T >::GetVector ( ) const
inline

Access to the underlying FVector2D that stores the scale.

Definition at line 167 of file TransformCalculus2D.h.

◆ Inverse()

template<typename T >
TScale2 TScale2< T >::Inverse ( ) const
inline

Invert the scale.

Definition at line 149 of file TransformCalculus2D.h.

◆ operator!=()

template<typename T >
bool TScale2< T >::operator!= ( const TScale2< T > & Other) const
inline

Inequality.

Definition at line 161 of file TransformCalculus2D.h.

◆ operator==()

template<typename T >
bool TScale2< T >::operator== ( const TScale2< T > & Other) const
inline

Equality.

Definition at line 155 of file TransformCalculus2D.h.

◆ TransformPoint()

template<typename T >
template<typename ArgType >
UE::Math::TVector2< ArgType > TScale2< T >::TransformPoint ( const UE::Math::TVector2< ArgType > & Point) const
inline

Transform 2D Point

Definition at line 131 of file TransformCalculus2D.h.

◆ TransformVector()

template<typename T >
template<typename ArgType >
UE::Math::TVector2< ArgType > TScale2< T >::TransformVector ( const UE::Math::TVector2< ArgType > & Vector) const
inline

Transform 2D Vector

Definition at line 138 of file TransformCalculus2D.h.

Member Data Documentation

◆ Scale

template<typename T >
Vector2Type TScale2< T >::Scale
private

Underlying storage of the 2D scale.

Definition at line 171 of file TransformCalculus2D.h.


The documentation for this class was generated from the following file: