TBox

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Box.h

Include

#include "Chaos/Box.h"

Syntax

template<class T, int d>
class TBox : public Chaos::FImplicitObject

Constructors

Name Description

Public function

TBox()

This should never be used outside of creating a default for arrays.

Public function

TBox

(
    const TBox < T, d >& Other
)

Public function

TBox

(
    const TAABB < T, d >& AABB
)

Public function

TBox

(
    TBox < T, d >&& Other
)

Public function

TBox

(
    const TVector < T, d >& Min,
    const TVector < T, d >& Max
)

This should never be used outside of creating a default for arrays.

Destructors

Name Description

Public function Virtual

~TBox()

Functions

Name Description

Public function Const

TVector < T, ...

 

Center()

Public function Const

TArray < TVec ...

 

ComputeLocalSamplePoints()

Returns sample points centered about the origin.

Public function Const

TArray < TVec ...

 

ComputeSamplePoints()

Returns sample points at the current location of the box.

Public function Const

bool

 

Contains

(
    const TVector < T, d >& Point
)

Public function Const

bool

 

Contains

(
    const TVector < T, d >& Point,
    const T Tolerance
)

Public function Static

TAABB < T, d ...

 

EmptyBox()

Public function Const

TVector < T, ...

 

Extents()

Public function Virtual Const

Pair < TVecto ...

 

FindClosestIntersectionImp

(
    const TVector < T, d >& StartPoint,
    const TVector < T, d >& EndPoint,
    const T Thickness
)

Public function Const

TVector < T, ...

 

FindClosestPoint

(
    const TVector < T, d >& StartPoint,
    const T Thickness
)

Public function Virtual Const

TVector < T, ...

 

FindGeometryOpposingNormal

(
    const TVector < T, d >& DenormDir,
    int32 FaceIndex,
    const TVector < T, d >& OriginalNor...
)

Public function Const

const TAABB <...

 

GetAABB()

Public function Const

T

 

GetArea()

Public function Const

TVector < T, ...

 

GetCenter()

Public function Const

TVector < T, ...

 

GetCenterOfMass()

Public function Const

PMatrix < T, ...

 

GetInertiaTensor

(
    const T Mass
)

Public function Static

PMatrix < T, ...

 

GetInertiaTensor

(
    const T Mass,
    const TVector < T, 3 >& Dim
)

Public function Const

TAABB < T, d ...

 

GetIntersection

(
    const TAABB < T, d >& Other
)

Public function Const

T

 

GetMargin()

Public function Static

TRotation < T...

 

GetRotationOfMass()

Public function Const

T

 

GetVolume()

Public function

void

 

GrowToInclude

(
    const TAABB < T, d >& Other
)

Public function

void

 

GrowToInclude

(
    const TVector < T, d >& V
)

Public function Static

TAABB < T, d ...

 

Intersection

(
    const TAABB < T, d >& A,
    const TAABB < T, d >& B
)

Public function Const

bool

 

Intersects

(
    const TAABB < T, d >& Other
)

Public function Const

bool

 

Intersects

(
    const TBox < T, d >& Other
)

Public function Static

bool

 

Intersects

(
    const TBox < T, d >& A,
    const TBox < T, d >& B
)

Public function Const

int

 

LargestAxis()

Public function Const

const TVecto ...

 

Max()

Public function Const

const TVecto ...

 

Min()

Public function Virtual Const

T

 

PhiWithNormal

(
    const TVector < T, d >& x,
    TVector < T, d >& Normal
)

Public function Virtual Const

bool

 

Raycast

(
    const TVector < T, d >& StartPoint,
    const TVector < T, d >& Dir,
    const T Length,
    const T Thickness,
    T& OutTime,
    TVector < T, d >& OutPosition,
    TVector < T, d >& OutNormal,
    int32 & OutFaceIndex
)

Public function Static

bool

 

RaycastFast

(
    const TVector < T, d >& Min,
    const TVector < T, d >& Max,
    const TVector < T, d >& StartPoint,
    const TVector < T, d >& Dir,
    const TVector < T, d >& InvDir,
    const bool * bParallel,
    const T Length,
    const T InvLength,
    T& OutTime,
    TVector < T, d >& OutPosition
)

Public function

void

 

Scale

(
    const TVector < T, d >& InScale
)

Public function Static

void

 

SerializeAsAABB

(
    FArchive & Ar,
    TAABB < T, d >& AABB
)

Public function Static

void

 

SerializeAsAABBs

(
    FArchive & Ar,
    TArray < TAABB < T, d >>& AABBs
)

Public function Static

void

 

SerializeAsAABBs

(
    FArchive & Ar,
    TMap < Key, TAABB < T, d >>& AABBs
)

Public function

void

 

SerializeImp

(
    FArchive & Ar
)

Public function

void

 

ShrinkToInclude

(
    const TAABB < T, d >& Other
)

Public function Static

constexpr EI ...

 

StaticType()

Public function Const

TVector < T, ...

 

Support

(
    const TVector < T, d >& Direction,
    const T Thickness
)

Public function Const

TVector < T, ...

 

Support2

(
    const TVector < T, d >& Direction
)

Public function

void

 

Thicken

(
    const float Thickness
)

Public function

void

 

ThickenSymmetrically

(
    const TVector < T, d >& Thickness
)

Grows (or shrinks) the box by this vector symmetrically - Changed name because previous Thicken had different semantics which caused several bugs.

Public function Const

TAABB < T, d ...

 

TransformedBox

(
    const TTRANSFORM& SpaceTransform
)

Public function Static

TAABB < T, d ...

 

ZeroBox()

Overridden from FImplicitObject

Name Description

Public function Virtual Const

const TAABB <...

 

BoundingBox()

Public function Virtual Const

TUniquePtr < ...

 

Copy()

Public function Virtual Const

uint32

 

GetTypeHash()

Public function Virtual

void

 

Serialize

(
    FChaosArchive & Ar
)

Public function Virtual

void

 

Serialize

(
    FArchive & Ar
)

Public function Virtual Const

FString

 

ToString()

Operators

Name Description

Public function

TBox < T, d >...

 

operator=

(
    const TBox < T, d >& Other
)

Public function

TBox < T, d >...

 

operator=

(
    TBox < T, d >&& 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