Jungle_Week1_Team2
Loading...
Searching...
No Matches
FVector Struct Reference

#include <Vector.h>

Public Member Functions

constexpr FVector () noexcept
constexpr FVector (const float InX, const float InY, const float InZ) noexcept
 FVector (const Float3 &InFloat3) noexcept
 FVector (DirectX::FXMVECTOR InVector) noexcept
 FVector (const FVector &) noexcept=default
 FVector (FVector &&) noexcept=default
FVectoroperator= (const FVector &) noexcept=default
FVectoroperator= (FVector &&) noexcept=default
float & operator[] (int32_t Index) noexcept
const float & operator[] (int32_t Index) const noexcept
constexpr bool operator== (const FVector &Other) const noexcept
constexpr bool operator!= (const FVector &Other) const noexcept
constexpr FVector operator- () const noexcept
constexpr FVector operator+ (const FVector &Other) const noexcept
constexpr FVector operator- (const FVector &Other) const noexcept
constexpr FVector operator* (float Scalar) const noexcept
constexpr FVector operator/ (float Scalar) const noexcept
FVectoroperator+= (const FVector &Other) noexcept
FVectoroperator-= (const FVector &Other) noexcept
FVectoroperator*= (float Scalar) noexcept
FVectoroperator/= (float Scalar) noexcept
Float3 ToXMFLOAT3 () const noexcept
XMVector ToXMVector (float W=0.f) const noexcept
bool Equals (const FVector &V, float Tolerance=1.e-6f) const noexcept
bool IsZero () const noexcept
bool IsNearlyZero (float Tolerance=1.e-6f) const noexcept
float SizeSquared () const noexcept
float Size () const noexcept
float SizeSquared2D () const noexcept
float Size2D () const noexcept
bool Normalize (float Tolerance=1.e-8f) noexcept
FVector GetSafeNormal (float Tolerance=1.e-8f) const noexcept
FVector GetSafeNormal2D (float Tolerance=1.e-8f) const noexcept

Static Public Member Functions

static FVector Zero ()
static FVector One ()
static FVector UnitX ()
static FVector UnitY ()
static FVector UnitZ ()
static float DotProduct (const FVector &A, const FVector &B) noexcept
static FVector CrossProduct (const FVector &A, const FVector &B) noexcept
static float DistSquared (const FVector &A, const FVector &B) noexcept
static float Dist (const FVector &A, const FVector &B) noexcept

Public Attributes

union { 
   struct { 
      float   X 
      float   Y 
      float   Z 
   } 
   float   XYZ [3] 
}; 

Static Public Attributes

static const FVector ZeroVector
static const FVector OneVector
static const FVector UpVector
static const FVector DownVector
static const FVector ForwardVector
static const FVector BackwardVector
static const FVector RightVector
static const FVector LeftVector
static const FVector XAxisVector
static const FVector YAxisVector
static const FVector ZAxisVector

Constructor & Destructor Documentation

◆ FVector() [1/6]

FVector::FVector ( )
inlineconstexprnoexcept

◆ FVector() [2/6]

FVector::FVector ( const float InX,
const float InY,
const float InZ )
inlineconstexprnoexcept

◆ FVector() [3/6]

FVector::FVector ( const Float3 & InFloat3)
inlineexplicitnoexcept

◆ FVector() [4/6]

FVector::FVector ( DirectX::FXMVECTOR InVector)
inlineexplicitnoexcept

◆ FVector() [5/6]

FVector::FVector ( const FVector & )
defaultnoexcept

◆ FVector() [6/6]

FVector::FVector ( FVector && )
defaultnoexcept

Member Function Documentation

◆ CrossProduct()

FVector FVector::CrossProduct ( const FVector & A,
const FVector & B )
inlinestaticnoexcept

◆ Dist()

float FVector::Dist ( const FVector & A,
const FVector & B )
inlinestaticnoexcept

◆ DistSquared()

float FVector::DistSquared ( const FVector & A,
const FVector & B )
inlinestaticnoexcept

◆ DotProduct()

float FVector::DotProduct ( const FVector & A,
const FVector & B )
inlinestaticnoexcept

◆ Equals()

bool FVector::Equals ( const FVector & V,
float Tolerance = 1.e-6f ) const
inlinenoexcept

◆ GetSafeNormal()

FVector FVector::GetSafeNormal ( float Tolerance = 1.e-8f) const
inlinenoexcept

◆ GetSafeNormal2D()

FVector FVector::GetSafeNormal2D ( float Tolerance = 1.e-8f) const
inlinenoexcept

◆ IsNearlyZero()

bool FVector::IsNearlyZero ( float Tolerance = 1.e-6f) const
inlinenoexcept

◆ IsZero()

bool FVector::IsZero ( ) const
inlinenoexcept

◆ Normalize()

bool FVector::Normalize ( float Tolerance = 1.e-8f)
inlinenoexcept

◆ One()

FVector FVector::One ( )
inlinestatic

◆ operator!=()

bool FVector::operator!= ( const FVector & Other) const
inlineconstexprnoexcept

◆ operator*()

FVector FVector::operator* ( float Scalar) const
inlineconstexprnoexcept

◆ operator*=()

FVector & FVector::operator*= ( float Scalar)
inlinenoexcept

◆ operator+()

FVector FVector::operator+ ( const FVector & Other) const
inlineconstexprnoexcept

◆ operator+=()

FVector & FVector::operator+= ( const FVector & Other)
inlinenoexcept

◆ operator-() [1/2]

FVector FVector::operator- ( ) const
inlineconstexprnoexcept

◆ operator-() [2/2]

FVector FVector::operator- ( const FVector & Other) const
inlineconstexprnoexcept

◆ operator-=()

FVector & FVector::operator-= ( const FVector & Other)
inlinenoexcept

◆ operator/()

FVector FVector::operator/ ( float Scalar) const
inlineconstexprnoexcept

◆ operator/=()

FVector & FVector::operator/= ( float Scalar)
inlinenoexcept

◆ operator=() [1/2]

FVector & FVector::operator= ( const FVector & )
defaultnoexcept

◆ operator=() [2/2]

FVector & FVector::operator= ( FVector && )
defaultnoexcept

◆ operator==()

bool FVector::operator== ( const FVector & Other) const
inlineconstexprnoexcept

◆ operator[]() [1/2]

const float & FVector::operator[] ( int32_t Index) const
inlinenoexcept

◆ operator[]() [2/2]

float & FVector::operator[] ( int32_t Index)
inlinenoexcept

◆ Size()

float FVector::Size ( ) const
inlinenoexcept

◆ Size2D()

float FVector::Size2D ( ) const
inlinenoexcept

◆ SizeSquared()

float FVector::SizeSquared ( ) const
inlinenoexcept

◆ SizeSquared2D()

float FVector::SizeSquared2D ( ) const
inlinenoexcept

◆ ToXMFLOAT3()

Float3 FVector::ToXMFLOAT3 ( ) const
inlinenoexcept

◆ ToXMVector()

XMVector FVector::ToXMVector ( float W = 0.f) const
inlinenoexcept

◆ UnitX()

FVector FVector::UnitX ( )
inlinestatic

◆ UnitY()

FVector FVector::UnitY ( )
inlinestatic

◆ UnitZ()

FVector FVector::UnitZ ( )
inlinestatic

◆ Zero()

FVector FVector::Zero ( )
inlinestatic

Member Data Documentation

◆ [union]

union { ... } FVector

◆ BackwardVector

const FVector FVector::BackwardVector
static

Backward vector (-1,0,0)

◆ DownVector

const FVector FVector::DownVector
static

Down vector (0,0,-1)

◆ ForwardVector

const FVector FVector::ForwardVector
static

Forward vector (1,0,0)

◆ LeftVector

const FVector FVector::LeftVector
static

Left vector (0,-1,0)

◆ OneVector

const FVector FVector::OneVector
static

One vector (1,1,1)

◆ RightVector

const FVector FVector::RightVector
static

Right vector (0,1,0)

◆ UpVector

const FVector FVector::UpVector
static

Up vector (0,0,1)

◆ X

float FVector::X

◆ XAxisVector

const FVector FVector::XAxisVector
static

Unit X axis vector (1,0,0)

◆ XYZ

float FVector::XYZ[3]

◆ Y

float FVector::Y

◆ YAxisVector

const FVector FVector::YAxisVector
static

Unit Y axis vector (0,1,0)

◆ Z

float FVector::Z

◆ ZAxisVector

const FVector FVector::ZAxisVector
static

Unit Z axis vector (0,0,1)

◆ ZeroVector

const FVector FVector::ZeroVector
static

A zero vector (0,0,0)


The documentation for this struct was generated from the following files: