G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FVector2D 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 (FVector2D Other, float Tolerance=KINDA_SMALL_NUMBER) const
FVector2D opAdd (FVector2D Other) const
FVector2D opSub (FVector2D Other) const
FVector2D opMul (FVector2D Other) const
FVector2D opDiv (FVector2D Other) const
FVector2D opMul (float Scale) const
FVector2D opDiv (float Scale) const
FVector2D opAdd (float Bias) const
FVector2D opSub (float Bias) const
FVector2D opNeg () const
FVector2D opMulAssign (float Scale)
FVector2D opDivAssign (float Scale)
FVector2D opMulAssign (FVector2D Other)
FVector2D opDivAssign (FVector2D Other)
FVector2D opAddAssign (FVector2D Other)
FVector2D opSubAssign (FVector2D Other)
float & opIndex (int Index)
float opIndex (int Index) const
bool opEquals (FVector2D Other) const
FVector2D & opAssign (FVector2D Other)
float CrossProduct (FVector2D Other) const
float DotProduct (FVector2D Other) const
float GetMax () const
float GetAbsMax () const
float GetMin () const
FVector2D GetAbs () const
float Size () const
float SizeSquared () const
bool IsNearlyZero (float Tolerance=KINDA_SMALL_NUMBER) const
bool IsZero () const
void Normalize (float Tolerance=SMALL_NUMBER)
FVector2D GetSafeNormal (float Tolerance=SMALL_NUMBER) const
bool ContainsNaN () const
FVector2D GetSignVector () const
float Distance (FVector2D Other) const
float DistSquared (FVector2D Other) const
FVector2D GetClampedToMaxSize (float Max) const
bool InitFromString (FString SourceString)
FString ToString () const

Public Attributes

Vector2D
float Y
float X
Variables
const float AbsMax
const float Max
const float Min
const FVector2D Abs
const FVector2D SignVector

Static Public Attributes

Static Variables
static const FVector2D UnitVector
static const FVector2D 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()

float CrossProduct ( FVector2D Other) const

◆ Distance()

float Distance ( FVector2D Other) const

◆ DistSquared()

float DistSquared ( FVector2D Other) const

◆ DotProduct()

float DotProduct ( FVector2D Other) const

◆ Equals()

bool Equals ( FVector2D Other,
float Tolerance = KINDA_SMALL_NUMBER ) const

◆ GetAbs()

FVector2D GetAbs ( ) const

◆ GetAbsMax()

float GetAbsMax ( ) const

◆ GetClampedToMaxSize()

FVector2D GetClampedToMaxSize ( float Max) const

◆ GetMax()

float GetMax ( ) const

◆ GetMin()

float GetMin ( ) const

◆ GetSafeNormal()

FVector2D GetSafeNormal ( float Tolerance = SMALL_NUMBER) const

◆ GetSignVector()

FVector2D GetSignVector ( ) const

◆ InitFromString()

bool InitFromString ( FString SourceString)

◆ IsNearlyZero()

bool IsNearlyZero ( float Tolerance = KINDA_SMALL_NUMBER) const

◆ IsZero()

bool IsZero ( ) const

◆ Normalize()

void Normalize ( float Tolerance = SMALL_NUMBER)

◆ opAdd() [1/2]

FVector2D opAdd ( float Bias) const

◆ opAdd() [2/2]

FVector2D opAdd ( FVector2D Other) const

◆ opAddAssign()

FVector2D opAddAssign ( FVector2D Other)

◆ opAssign()

FVector2D & opAssign ( FVector2D Other)

◆ opDiv() [1/2]

FVector2D opDiv ( float Scale) const

◆ opDiv() [2/2]

FVector2D opDiv ( FVector2D Other) const

◆ opDivAssign() [1/2]

FVector2D opDivAssign ( float Scale)

◆ opDivAssign() [2/2]

FVector2D opDivAssign ( FVector2D Other)

◆ opEquals()

bool opEquals ( FVector2D Other) const

◆ opIndex() [1/2]

float & opIndex ( int Index)

◆ opIndex() [2/2]

float opIndex ( int Index) const

◆ opMul() [1/2]

FVector2D opMul ( float Scale) const

◆ opMul() [2/2]

FVector2D opMul ( FVector2D Other) const

◆ opMulAssign() [1/2]

FVector2D opMulAssign ( float Scale)

◆ opMulAssign() [2/2]

FVector2D opMulAssign ( FVector2D Other)

◆ opNeg()

FVector2D opNeg ( ) const

◆ opSub() [1/2]

FVector2D opSub ( float Bias) const

◆ opSub() [2/2]

FVector2D opSub ( FVector2D Other) const

◆ opSubAssign()

FVector2D opSubAssign ( FVector2D Other)

◆ Size()

float Size ( ) const

◆ SizeSquared()

float SizeSquared ( ) const

◆ ToString()

FString ToString ( ) const

Member Data Documentation

◆ Abs

const FVector2D Abs

◆ AbsMax

const float AbsMax

◆ Max

const float Max

◆ Min

const float Min

◆ SignVector

const FVector2D SignVector

◆ UnitVector

const FVector2D UnitVector
static

◆ X

float X

◆ Y

float Y

◆ ZeroVector

const FVector2D ZeroVector
static