Navigation
API > API/Runtime > API/Runtime/ChaosCore
| Name | TVector |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/ChaosCore/Public/Chaos/Vector.h |
| Include Path | #include "Chaos/Vector.h" |
Syntax
template<class T, int d>
class TVector
Derived Classes
TVector derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVector () |
Chaos/Vector.h | ||
| Chaos/Vector.h | |||
TVector
(
const FElement& Element |
Chaos/Vector.h | ||
TVector
(
std::initializer_list< T > InElements |
Chaos/Vector.h | ||
TVector
(
const FVector3f& Other |
Chaos/Vector.h | ||
TVector
(
const FVector3d& Other |
Chaos/Vector.h | ||
| Chaos/Vector.h | |||
TVector
(
const T& V0, |
Chaos/Vector.h | ||
TVector
(
const T& V0, |
Chaos/Vector.h | ||
TVector
(
const T& V0, |
Chaos/Vector.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FElement | T | Chaos/Vector.h | |
| FTraits | TVectorTraits< T, d > | Chaos/Vector.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NumElements | const int | Chaos/Vector.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| V | FElement | T Size() const { T SquaredSum = 0; for (int32 i = 0; i < NumElements; ++i) { SquaredSum += ((_this)[i] * (*this)[i]); } return FMath::Sqrt(SquaredSum); } T Product() const { T Result = 1; for (int32 i = 0; i < NumElements; ++i) { Result *= (*this)[i]; } return Result; } static TVector |
N | and to avoid inf //So we want N / | N | < 1 / eps => N eps < | N | , but this is clearly true for all eps < 1 and N > 0 T SizeSqr = SizeSquared(); if (SizeSqr <= TNumericLimits |
Chaos/Vector.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ContainsNaN() |
Chaos/Vector.h | ||
int32 Num() |
Chaos/Vector.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FElement & operator[]
(
int Index |
Chaos/Vector.h | ||
const FElement & operator[]
(
int Index |
Chaos/Vector.h | ||
| Chaos/Vector.h | |||
| Chaos/Vector.h |