FVector3

Templated 3D Vector.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/VectorTypes.h

Include

#include "VectorTypes.h"

Syntax

template<typename T>
struct FVector3

Remarks

Templated 3D Vector. Ported from g3Sharp library, with the intention of maintaining compatibility with existing g3Sharp code. Has an API similar to WildMagic, GTEngine, Eigen, etc.

Convenience typedefs for FVector3f/FVector3d/FVector3i are defined, and should be preferentially used over the base template type

Variables

Name Description

Public variable

T

 

X

Public variable

T

 

Y

Public variable

T

 

Z

Constructors

Name Description

Public function

FVector3()

Public function

FVector3

(
    const T* Data
)

Public function

FVector3

(
    const FVector2< T >& Data
)

Public function

FVector3

(
    const FVector3& Vec
)

Public function

FVector3

(
    const FVector3< RealType2 >& Vec
)

Public function

FVector3

(
    const FVector& Vec
)

Public function

FVector3

(
    const FLinearColor& Color
)

Public function

FVector3

(
    T ValX,
    T ValY,
    T ValZ
)

Functions

Name Description

Public function Const

T

 

AngleD

(
    const FVector3< T >& V2
)

Assumes this vector and V2 are both already normalized

Public function Const

T

 

AngleR

(
    const FVector3< T >& V2
)

Assumes this vector and V2 are both already normalized

Public function Const

FVector3< T ...

 

Cross

(
    const FVector3< T >& V2
)

Public function Const

constexpr T

 

Distance

(
    const FVector3< T >& V2
)

Public function Const

constexpr T

 

DistanceSquared

(
    const FVector3< T >& V2
)

Public function Const

T

 

Dot

(
    const FVector3< T >& V2
)

Public function

constexpr bo...

 

IsNormalized()

Public function Const

T

 

Length()

Public function Static

FVector3< T ...

 

Lerp

(
    const FVector3< T >& A,
    const FVector3< T >& B,
    T Alpha
)

Public function Static

FVector3< T ...

 

Max()

Public function Const

constexpr T

 

MaxAbs()

Public function Const

constexpr T

 

MinAbs()

Public function

T

 

Normalize

(
    const T Epsilon
)

Public function Const

constexpr FV...

 

Normalized

(
    const T Epsilon
)

Public function Static

FVector3< T ...

 

One()

Public function Const

T

 

SquaredLength()

Public function Static

FVector3< T ...

 

UnitX()

Public function Static

FVector3< T ...

 

UnitY()

Public function Static

FVector3< T ...

 

UnitZ()

Public function Static

FVector3< T ...

 

Zero()

Operators

Name Description

Public function Const

constexpr FV...

 

operator-()

Public function Const

constexpr FV...

 

operator-

(
    const FVector3< T >& V2
)

Public function Const

constexpr FV...

 

operator-

(
    const T& Scalar
)

Public function Const

constexpr

 

operator const T *()

Public function Const

constexpr

 

operator FColor()

Public function Const

constexpr

 

operator FLinearColor()

Public function Const

 

operator FVector()

Public function

constexpr

 

operator T *()

Public function Const

constexpr FV...

 

operator*

(
    const RealType2& Scalar
)

Public function Const

constexpr FV...

 

operator*

(
    const FVector3< T >& V2
)

Public function Const

constexpr FV...

 

operator*

(
    const T& Scalar
)

Public function

constexpr FV...

 

operator*=

(
    const T& Scalar
)

Public function Const

constexpr FV...

 

operator/

(
    const FVector3< T >& V2
)

Public function Const

constexpr FV...

 

operator/

(
    const T& Scalar
)

Public function

constexpr FV...

 

operator/=

(
    const T& Scalar
)

Public function

T &

 

operator[]

(
    int Idx
)

Public function Const

const T &

 

operator[]

(
    int Idx
)

Public function Const

constexpr FV...

 

operator+

(
    const T& Scalar
)

Public function Const

constexpr FV...

 

operator+

(
    const FVector3< T >& V2
)

Public function

constexpr FV...

 

operator+=

(
    const FVector3< T >& V2
)

Public function

FVector3< T ...

 

operator=

(
    const FVector3< T >& V2
)

Public function

constexpr FV...

 

operator-=

(
    const FVector3< T >& V2
)

Public function Const

constexpr bo...

 

operator==

(
    const FVector3< T >& Other
)

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