G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FVector2f Struct Reference

A vector in 2-D space composed of components (X, Y) with floating point precision. @note The full C++ class is located here: Engine\Source\Runtime\Core\Public\Math\Vector2D.h. More...

Public Member Functions

Functions
bool Equals (FVector2f Other, float32 Tolerance=__KINDA_SMALL_NUMBER_flt) const
FVector2f opAdd (FVector2f Other) const
FVector2f opSub (FVector2f Other) const
FVector2f opMul (FVector2f Other) const
FVector2f opDiv (FVector2f Other) const
FVector2f opMul (float32 Scale) const
FVector2f opDiv (float32 Scale) const
FVector2f opAdd (float32 Bias) const
FVector2f opSub (float32 Bias) const
FVector2f opNeg () const
FVector2f opMulAssign (float32 Scale)
FVector2f opDivAssign (float32 Scale)
FVector2f opMulAssign (FVector2f Other)
FVector2f opDivAssign (FVector2f Other)
FVector2f opAddAssign (FVector2f Other)
FVector2f opSubAssign (FVector2f Other)
float32 & opIndex (int Index)
float32 opIndex (int Index) const
bool opEquals (FVector2f Other) const
FVector2f & opAssign (FVector2f Other)
float32 CrossProduct (FVector2f Other) const
float32 DotProduct (FVector2f Other) const
float32 GetMax () const
float32 GetAbsMax () const
float32 GetMin () const
FVector2f GetAbs () const
float32 Size () const
float32 SizeSquared () const
bool IsNearlyZero (float32 Tolerance=__KINDA_SMALL_NUMBER_flt) const
bool IsZero () const
void Normalize (float32 Tolerance=__SMALL_NUMBER_flt)
FVector2f GetSafeNormal (float32 Tolerance=__SMALL_NUMBER_flt) const
bool ContainsNaN () const
FVector2f GetSignVector () const
float32 Distance (FVector2f Other) const
float32 DistSquared (FVector2f Other) const
FVector2f GetClampedToMaxSize (float32 Max) const
bool InitFromString (FString SourceString)
FString ToString () const

Public Attributes

Vector2D
float32 Y
float32 X
Variables
const float32 AbsMax
const float32 Max
const float32 Min
const FVector2f Abs
const FVector2f SignVector

Static Public Attributes

Static Variables
static const FVector2f UnitVector
static const FVector2f ZeroVector

Detailed Description

A vector in 2-D space composed of components (X, Y) with floating point precision. @note The full C++ class is located here: Engine\Source\Runtime\Core\Public\Math\Vector2D.h.

Member Function Documentation

◆ ContainsNaN()

bool ContainsNaN ( ) const

◆ CrossProduct()

float32 CrossProduct ( FVector2f Other) const

◆ Distance()

float32 Distance ( FVector2f Other) const

◆ DistSquared()

float32 DistSquared ( FVector2f Other) const

◆ DotProduct()

float32 DotProduct ( FVector2f Other) const

◆ Equals()

bool Equals ( FVector2f Other,
float32 Tolerance = __KINDA_SMALL_NUMBER_flt ) const

◆ GetAbs()

FVector2f GetAbs ( ) const

◆ GetAbsMax()

float32 GetAbsMax ( ) const

◆ GetClampedToMaxSize()

FVector2f GetClampedToMaxSize ( float32 Max) const

◆ GetMax()

float32 GetMax ( ) const

◆ GetMin()

float32 GetMin ( ) const

◆ GetSafeNormal()

FVector2f GetSafeNormal ( float32 Tolerance = __SMALL_NUMBER_flt) const

◆ GetSignVector()

FVector2f GetSignVector ( ) const

◆ InitFromString()

bool InitFromString ( FString SourceString)

◆ IsNearlyZero()

bool IsNearlyZero ( float32 Tolerance = __KINDA_SMALL_NUMBER_flt) const

◆ IsZero()

bool IsZero ( ) const

◆ Normalize()

void Normalize ( float32 Tolerance = __SMALL_NUMBER_flt)

◆ opAdd() [1/2]

FVector2f opAdd ( float32 Bias) const

◆ opAdd() [2/2]

FVector2f opAdd ( FVector2f Other) const

◆ opAddAssign()

FVector2f opAddAssign ( FVector2f Other)

◆ opAssign()

FVector2f & opAssign ( FVector2f Other)

◆ opDiv() [1/2]

FVector2f opDiv ( float32 Scale) const

◆ opDiv() [2/2]

FVector2f opDiv ( FVector2f Other) const

◆ opDivAssign() [1/2]

FVector2f opDivAssign ( float32 Scale)

◆ opDivAssign() [2/2]

FVector2f opDivAssign ( FVector2f Other)

◆ opEquals()

bool opEquals ( FVector2f Other) const

◆ opIndex() [1/2]

float32 & opIndex ( int Index)

◆ opIndex() [2/2]

float32 opIndex ( int Index) const

◆ opMul() [1/2]

FVector2f opMul ( float32 Scale) const

◆ opMul() [2/2]

FVector2f opMul ( FVector2f Other) const

◆ opMulAssign() [1/2]

FVector2f opMulAssign ( float32 Scale)

◆ opMulAssign() [2/2]

FVector2f opMulAssign ( FVector2f Other)

◆ opNeg()

FVector2f opNeg ( ) const

◆ opSub() [1/2]

FVector2f opSub ( float32 Bias) const

◆ opSub() [2/2]

FVector2f opSub ( FVector2f Other) const

◆ opSubAssign()

FVector2f opSubAssign ( FVector2f Other)

◆ Size()

float32 Size ( ) const

◆ SizeSquared()

float32 SizeSquared ( ) const

◆ ToString()

FString ToString ( ) const

Member Data Documentation

◆ Abs

const FVector2f Abs

◆ AbsMax

const float32 AbsMax

◆ Max

const float32 Max

◆ Min

const float32 Min

◆ SignVector

const FVector2f SignVector

◆ UnitVector

const FVector2f UnitVector
static

◆ X

float32 X

◆ Y

float32 Y

◆ ZeroVector

const FVector2f ZeroVector
static