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 Static

FVector3 < T ...

 

Blend3

(
    const FVector3 < T >& A,
    const FVector3 < T >& B,
    const FVector3 < T >& C,
    const T& WeightA,
    const T& WeightB,
    const T& WeightC
)

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

constexpr FV ...

 

MakeUnit

(
    int32 Axis
)

Public function Const

constexpr T

 

MaxAbsElement()

Public function Const

constexpr T

 

MaxAbsElementIndex()

Public function Const

constexpr T

 

MaxElement()

Public function Const

constexpr in ...

 

MaxElementIndex()

Public function Static

FVector3 < T ...

 

MaxVector()

Public function Const

constexpr T

 

MinAbsElement()

Public function Const

constexpr T

 

MinAbsElementIndex()

Public function Const

constexpr T

 

MinElement()

Public function Const

constexpr in ...

 

MinElementIndex()

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 Const

FVector3 < T ...

 

UnitCross

(
    const FVector3 < T >& V2
)

Public function Static

FVector3 < T ...

 

UnitX()

Public function Static

FVector3 < T ...

 

UnitY()

Public function Static

FVector3 < T ...

 

UnitZ()

Public function Const

constexpr FV ...

 

XY()

Public function Const

constexpr FV ...

 

XZ()

Public function Const

constexpr FV ...

 

YZ()

Public function Static

FVector3 < T ...

 

Zero()

Operators

Name Description

Public function Const

constexpr FV ...

 

operator-

(
    const T& Scalar
)

Public function Const

constexpr FV ...

 

operator-

(
    const FVector3 < T >& V2
)

Public function Const

constexpr FV ...

 

operator-()

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 bo ...

 

operator!=

(
    const FVector3 < T >& Other
)

Public function Const

constexpr FV ...

 

operator*

(
    const FVector3 < T >& V2
)

Public function Const

constexpr FV ...

 

operator*

(
    const RealType2& Scalar
)

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 Const

const T &

 

operator[]

(
    int Idx
)

Public function

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
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback