UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Chaos::TBox< T, d > Class Template Reference

#include <Box.h>

+ Inheritance diagram for Chaos::TBox< T, d >:

Public Member Functions

FORCEINLINE TBox ()
 
FORCEINLINE TBox (const TVector< T, d > &Min, const TVector< T, d > &Max)
 
FORCEINLINE TBox (const TVector< T, d > &InMin, const TVector< T, d > &InMax, FReal InMargin)
 
FORCEINLINE TBox (const TBox< T, d > &Other)
 
FORCEINLINE TBox (TBox< T, d > &&Other)
 
FORCEINLINE TBox< T, d > & operator= (const TBox< T, d > &Other)
 
FORCEINLINE TBox< T, d > & operator= (TBox< T, d > &&Other)
 
virtual ~TBox ()
 
virtual Chaos::FImplicitObjectPtr CopyGeometry () const override
 
virtual Chaos::FImplicitObjectPtr CopyGeometryWithScale (const FVec3 &Scale) const override
 
virtual FReal GetRadius () const override
 
TArray< TVector< T, d > > ComputeLocalSamplePoints () const
 
TArray< TVector< T, d > > ComputeSamplePoints () const
 
FORCEINLINE bool Contains (const TVector< T, d > &Point) const
 
FORCEINLINE bool Contains (const TVector< T, d > &Point, const T Tolerance) const
 
FORCEINLINE const TVector< T, d > & Min () const
 
FORCEINLINE const TVector< T, d > & Max () const
 
FORCEINLINE const TAABB< FReal, 3 > BoundingBox () const
 
FORCEINLINE FReal ClampedMargin (FReal InMargin) const
 
virtual FReal PhiWithNormal (const FVec3 &Pos, FVec3 &Normal) const override
 
virtual FReal PhiWithNormalScaled (const FVec3 &Pos, const FVec3 &Scale, FVec3 &Normal) const override
 
virtual bool Raycast (const FVec3 &StartPoint, const FVec3 &Dir, const FReal Length, const FReal Thickness, FReal &OutTime, FVec3 &OutPosition, FVec3 &OutNormal, int32 &OutFaceIndex) const override
 
TVector< T, d > FindClosestPoint (const TVector< T, d > &StartPoint, const T Thickness=(T) 0) const
 
virtual Pair< FVec3, boolFindClosestIntersectionImp (const FVec3 &StartPoint, const FVec3 &EndPoint, const FReal Thickness) const override
 
virtual FVec3 FindGeometryOpposingNormal (const FVec3 &DenormDir, int32 FaceIndex, const FVec3 &OriginalNormal) const override
 
int32 GetMostOpposingPlane (const TVector< T, d > &Normal) const
 
int32 GetMostOpposingPlaneScaled (const TVector< T, d > &Normal, const TVector< T, d > &Scale) const
 
FVec3 GetClosestEdge (int32 PlaneIndexHint, const FVec3 &Position, FVec3 &OutEdgePos0, FVec3 &OutEdgePos1) const
 
TVector< T, d > GetClosestEdgePosition (int32 PlaneIndexHint, const TVector< T, d > &Position) const
 
bool GetClosestEdgeVertices (int32 PlaneIndexHint, const FVec3 &Position, int32 &OutVertexIndex0, int32 &OutVertexIndex1) const
 
int32 FindVertexPlanes (int32 VertexIndex, int32 *OutVertexPlanes, int32 MaxVertexPlanes) const
 
int32 GetVertexPlanes3 (int32 VertexIndex, int32 &PlaneIndex0, int32 &PlaneIndex1, int32 &PlaneIndex2) const
 
int32 NumPlaneVertices (int32 PlaneIndex) const
 
int32 GetPlaneVertex (int32 PlaneIndex, int32 PlaneVertexIndex) const
 
int32 GetEdgeVertex (int32 EdgeIndex, int32 EdgeVertexIndex) const
 
int32 GetEdgePlane (int32 EdgeIndex, int32 EdgePlaneIndex) const
 
int32 NumPlanes () const
 
int32 NumEdges () const
 
int32 NumVertices () const
 
const TPlaneConcrete< FRealGetPlane (int32 FaceIndex) const
 
void GetPlaneNX (const int32 FaceIndex, FVec3 &OutN, FVec3 &OutX) const
 
const FVec3 GetVertex (int32 VertexIndex) const
 
FORCEINLINE_DEBUGGABLE TVector< T, d > Support (const TVector< T, d > &Direction, const T Thickness, int32 &VertexIndex) const
 
FORCEINLINE_DEBUGGABLE TVector< T, d > SupportCore (const TVector< T, d > &Direction, const FReal InMargin, FReal *OutSupportDelta, int32 &VertexIndex) const
 
FORCEINLINE_DEBUGGABLE VectorRegister4Float SupportCoreSimd (const VectorRegister4Float &Direction, const FReal InMargin) const
 
FORCEINLINE_DEBUGGABLE TVector< T, d > SupportCoreScaled (const TVector< T, d > &Direction, const FReal InMargin, const TVector< T, d > &Scale, T *OutSupportDelta, int32 &VertexIndex) const
 
FORCEINLINE FReal GetWindingOrder () const
 
FORCEINLINE TVector< T, d > Center () const
 
FORCEINLINE TVector< T, d > GetCenter () const
 
FORCEINLINE TVector< T, d > GetCenterOfMass () const
 
FORCEINLINE TVector< T, d > Extents () const
 
int LargestAxis () const
 
FORCEINLINEGetArea () const
 
FORCEINLINEGetVolume () const
 
FORCEINLINE PMatrix< T, d, d > GetInertiaTensor (const T Mass) const
 
virtual FString ToString () const override
 
FORCEINLINE void SerializeImp (FArchive &Ar)
 
virtual void Serialize (FChaosArchive &Ar) override
 
virtual void Serialize (FArchive &Ar) override
 
virtual uint32 GetTypeHash () const override
 
CHAOS_API FReal SignedDistance (const FVec3 &x) const
 
virtual FName GetTypeName () const
 
- Public Member Functions inherited from Chaos::FImplicitObject
CHAOS_API FImplicitObject (int32 Flags, EImplicitObjectType InType=ImplicitObjectType::Unknown)
 
 FImplicitObject (const FImplicitObject &)=delete
 
 FImplicitObject (FImplicitObject &&)=delete
 
virtual CHAOS_API ~FImplicitObject () override
 
template<typename TargetType >
bool IsA () const
 
template<typename TargetType >
const TargetType * AsA () const
 
template<typename TargetType >
TargetType * AsA ()
 
template<typename TargetType >
const TargetType * AsAChecked () const
 
template<typename TargetType >
TargetType * AsAChecked ()
 
template<class T_DERIVED >
T_DERIVEDGetObject ()
 
template<class T_DERIVED >
const T_DERIVEDGetObject () const
 
template<class T_DERIVED >
const T_DERIVEDGetObjectChecked () const
 
template<class T_DERIVED >
T_DERIVEDGetObjectChecked ()
 
virtual EImplicitObjectType GetNestedType () const
 
CHAOS_API EImplicitObjectType GetType () const
 
CHAOS_API EImplicitObjectType GetCollisionType () const
 
void SetCollisionType (EImplicitObjectType InCollisionType)
 
virtual FRealSingle GetRadiusf () const
 
virtual FReal GetMargin () const
 
virtual FRealSingle GetMarginf () const
 
virtual CHAOS_API bool IsValidGeometry () const
 
virtual Chaos::FImplicitObjectPtr DeepCopyGeometry () const
 
virtual Chaos::FImplicitObjectPtr DeepCopyGeometryWithScale (const FVec3 &Scale) const
 
virtual FImplicitObjectDuplicate () const
 
virtual TUniquePtr< FImplicitObjectCopy () const
 
virtual TUniquePtr< FImplicitObjectCopyWithScale (const FVec3 &Scale) const
 
virtual TUniquePtr< FImplicitObjectDeepCopy () const
 
virtual TUniquePtr< FImplicitObjectDeepCopyWithScale (const FVec3 &Scale) const
 
CHAOS_API bool IsUnderlyingUnion () const
 
CHAOS_API bool IsUnderlyingMesh () const
 
CHAOS_API FReal SignedDistance (const FVec3 &x) const
 
CHAOS_API FVec3 Normal (const FVec3 &x) const
 
virtual FAABB3 CalculateTransformedBounds (const FRigidTransform3 &Transform) const
 
bool HasBoundingBox () const
 
bool IsConvex () const
 
void SetConvex (const bool Convex=true)
 
void SetDoCollide (const bool Collide)
 
bool GetDoCollide () const
 
CHAOS_API void Track (TSerializablePtr< FImplicitObject > This, const FString &DebugInfo)
 
virtual bool IsPerformanceWarning () const
 
virtual FString PerformanceWarningAndSimplifaction ()
 
CHAOS_API Pair< FVec3, boolFindDeepestIntersection (const FImplicitObject *Other, const FBVHParticles *Particles, const FMatrix33 &OtherToLocalTransform, const FReal Thickness) const
 
CHAOS_API Pair< FVec3, boolFindDeepestIntersection (const FImplicitObject *Other, const FParticles *Particles, const FMatrix33 &OtherToLocalTransform, const FReal Thickness) const
 
CHAOS_API Pair< FVec3, boolFindClosestIntersection (const FVec3 &StartPoint, const FVec3 &EndPoint, const FReal Thickness) const
 
virtual int32 FindMostOpposingFace (const FVec3 &Position, const FVec3 &UnitDir, int32 HintFaceIndex, FReal SearchDist) const
 
virtual int32 FindMostOpposingFaceScaled (const FVec3 &Position, const FVec3 &UnitDir, int32 HintFaceIndex, FReal SearchDist, const FVec3 &Scale) const
 
virtual int32 FindClosestFaceAndVertices (const FVec3 &Position, TArray< FVec3 > &FaceVertices, FReal SearchDist=0.01f) const
 
virtual bool Overlap (const FVec3 &Point, const FReal Thickness) const
 
virtual void AccumulateAllImplicitObjects (TArray< Pair< const FImplicitObject *, FRigidTransform3 > > &Out, const FRigidTransform3 &ParentTM) const
 
virtual void AccumulateAllSerializableImplicitObjects (TArray< Pair< TSerializablePtr< FImplicitObject >, FRigidTransform3 > > &Out, const FRigidTransform3 &ParentTM, TSerializablePtr< FImplicitObject > This) const
 
virtual CHAOS_API void FindAllIntersectingObjects (TArray< Pair< const FImplicitObject *, FRigidTransform3 > > &Out, const FAABB3 &LocalBounds) const
 
CHAOS_API void SerializeImp (FArchive &Ar)
 
virtual uint16 GetMaterialIndex (uint32 HintIndex) const
 
int32 CountObjectsInHierarchy () const
 
int32 CountLeafObjectsInHierarchy () const
 
void VisitOverlappingLeafObjects (const FAABB3 &LocalBounds, const FImplicitHierarchyVisitor &Visitor) const
 
void VisitLeafObjects (const FImplicitHierarchyVisitor &Visitor) const
 
void VisitObjects (const FImplicitHierarchyVisitorBool &Visitor) const
 
bool IsOverlappingBounds (const FAABB3 &LocalBounds) const
 
virtual int32 CountObjectsInHierarchyImpl () const
 
virtual int32 CountLeafObjectsInHierarchyImpl () const
 
virtual void VisitOverlappingLeafObjectsImpl (const FAABB3 &LocalBounds, const FRigidTransform3 &ObjectTransform, const int32 RootObjectIndex, int32 &ObjectIndex, int32 &LeafObjectIndex, const FImplicitHierarchyVisitor &VisitorFunc) const
 
virtual void VisitLeafObjectsImpl (const FRigidTransform3 &ObjectTransform, const int32 RootObjectIndex, int32 &ObjectIndex, int32 &LeafObjectIndex, const FImplicitHierarchyVisitor &VisitorFunc) const
 
virtual bool VisitObjectsImpl (const FRigidTransform3 &ObjectTransform, const int32 RootObjectIndex, int32 &ObjectIndex, int32 &LeafObjectIndex, const FImplicitHierarchyVisitorBool &VisitorFunc) const
 
virtual bool IsOverlappingBoundsImpl (const FAABB3 &LocalBounds) const
 
- Public Member Functions inherited from Chaos::FChaosRefCountedObject
 FChaosRefCountedObject ()
 
virtual ~FChaosRefCountedObject ()
 
 FChaosRefCountedObject (const FChaosRefCountedObject &Rhs)=delete
 
FChaosRefCountedObjectoperator= (const FChaosRefCountedObject &Rhs)=delete
 
uint32 AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 
void MakePersistent () const
 

Static Public Member Functions

static FORCEINLINE constexpr EImplicitObjectType StaticType ()
 
static FORCEINLINE bool RaycastFast (const TVector< T, d > &InMin, const TVector< T, d > &InMax, 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)
 
static FORCEINLINE PMatrix< T, 3, 3 > GetInertiaTensor (const T Mass, const TVector< T, 3 > &Dim)
 
static FORCEINLINE TRotation< T, d > GetRotationOfMass ()
 
static void SerializeAsAABB (FArchive &Ar, TAABB< T, d > &AABB)
 
template<typename OtherType >
static void SerializeAsAABBs (FArchive &Ar, TArray< TAABB< OtherType, d > > &AABBs)
 
template<typename Key >
static void SerializeAsAABBs (FArchive &Ar, TMap< Key, TAABB< T, d > > &AABBs)
 
static CHAOS_API const FName GetTypeName (const EImplicitObjectType InType)
 
- Static Public Member Functions inherited from Chaos::FImplicitObject
static CHAOS_API FImplicitObjectSerializationFactory (FChaosArchive &Ar, FImplicitObject *Obj)
 
static int32 GetOffsetOfType ()
 
static int32 GetOffsetOfMargin ()
 
static constexpr EImplicitObjectType StaticType ()
 
static CHAOS_API FArchiveSerializeLegacyHelper (FArchive &Ar, TUniquePtr< FImplicitObject > &Value)
 
static CHAOS_API const FName GetTypeName (const EImplicitObjectType InType)
 

Additional Inherited Members

- Public Types inherited from Chaos::FImplicitObject
using TType = FReal
 
- Static Public Attributes inherited from Chaos::FImplicitObject
static constexpr int D = 3
 
- Protected Member Functions inherited from Chaos::FImplicitObject
void SetMargin (FReal InMargin)
 
void SetMargin (FRealSingle InMargin)
 
- Static Protected Member Functions inherited from Chaos::FImplicitObject
static FVec3 ScaleNormalizedHelper (const FVec3 &Normal, const FVec3 &Scale)
 
static FVec3 GetOuterScaledNormal (const FVec3 &InnerNormal, const FVec3 &Scale)
 
static FVec3 GetInnerUnscaledNormal (const FVec3 &OuterNormal, const FVec3 &Scale)
 
- Protected Attributes inherited from Chaos::FImplicitObject
FRealSingle Margin
 
bool bIsConvex
 
bool bDoCollide
 
bool bHasBoundingBox
 
bool bIsTracked
 
EImplicitObjectType Type
 
EImplicitObjectType CollisionType
 

Constructor & Destructor Documentation

◆ TBox() [1/5]

template<class T , int d>
FORCEINLINE Chaos::TBox< T, d >::TBox ( )
inline

◆ TBox() [2/5]

template<class T , int d>
FORCEINLINE Chaos::TBox< T, d >::TBox ( const TVector< T, d > &  Min,
const TVector< T, d > &  Max 
)
inline

◆ TBox() [3/5]

template<class T , int d>
FORCEINLINE Chaos::TBox< T, d >::TBox ( const TVector< T, d > &  InMin,
const TVector< T, d > &  InMax,
FReal  InMargin 
)
inline

Create a box with the specified size and margin (Min and Max is the desired size including the margin).

◆ TBox() [4/5]

template<class T , int d>
FORCEINLINE Chaos::TBox< T, d >::TBox ( const TBox< T, d > &  Other)
inline

◆ TBox() [5/5]

template<class T , int d>
FORCEINLINE Chaos::TBox< T, d >::TBox ( TBox< T, d > &&  Other)
inline

◆ ~TBox()

template<class T , int d>
virtual Chaos::TBox< T, d >::~TBox ( )
inlinevirtual

Member Function Documentation

◆ BoundingBox()

template<class T , int d>
FORCEINLINE const TAABB< FReal, 3 > Chaos::TBox< T, d >::BoundingBox ( ) const
inlinevirtual

Reimplemented from Chaos::FImplicitObject.

◆ Center()

template<class T , int d>
FORCEINLINE TVector< T, d > Chaos::TBox< T, d >::Center ( ) const
inline

◆ ClampedMargin()

template<class T , int d>
FORCEINLINE FReal Chaos::TBox< T, d >::ClampedMargin ( FReal  InMargin) const
inline

◆ ComputeLocalSamplePoints()

template<class T , int d>
TArray< TVector< T, d > > Chaos::TBox< T, d >::ComputeLocalSamplePoints ( ) const
inline

Returns sample points centered about the origin.

◆ ComputeSamplePoints()

template<class T , int d>
TArray< TVector< T, d > > Chaos::TBox< T, d >::ComputeSamplePoints ( ) const
inline

Returns sample points at the current location of the box.

◆ Contains() [1/2]

template<class T , int d>
FORCEINLINE bool Chaos::TBox< T, d >::Contains ( const TVector< T, d > &  Point) const
inline

◆ Contains() [2/2]

template<class T , int d>
FORCEINLINE bool Chaos::TBox< T, d >::Contains ( const TVector< T, d > &  Point,
const T  Tolerance 
) const
inline

◆ CopyGeometry()

template<class T , int d>
virtual Chaos::FImplicitObjectPtr Chaos::TBox< T, d >::CopyGeometry ( ) const
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ CopyGeometryWithScale()

template<class T , int d>
virtual Chaos::FImplicitObjectPtr Chaos::TBox< T, d >::CopyGeometryWithScale ( const FVec3 Scale) const
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ Extents()

template<class T , int d>
FORCEINLINE TVector< T, d > Chaos::TBox< T, d >::Extents ( ) const
inline

◆ FindClosestIntersectionImp()

template<class T , int d>
virtual Pair< FVec3, bool > Chaos::TBox< T, d >::FindClosestIntersectionImp ( const FVec3 StartPoint,
const FVec3 EndPoint,
const FReal  Thickness 
) const
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ FindClosestPoint()

template<class T , int d>
TVector< T, d > Chaos::TBox< T, d >::FindClosestPoint ( const TVector< T, d > &  StartPoint,
const T  Thickness = (T)0 
) const
inline

◆ FindGeometryOpposingNormal()

template<class T , int d>
virtual FVec3 Chaos::TBox< T, d >::FindGeometryOpposingNormal ( const FVec3 DenormDir,
int32  FaceIndex,
const FVec3 OriginalNormal 
) const
inlineoverridevirtual

Given a normal and a face index, compute the most opposing normal associated with the underlying geometry features. For example a sphere swept against a box may not give a normal associated with one of the box faces. This function will return a normal associated with one of the faces.

Parameters
DenormDir- the direction we want to oppose
FaceIndex- the face index associated with the geometry (for example if we hit a specific face of a convex hull)
OriginalNormal- the original normal given by something like a sphere sweep
Returns
The most opposing normal associated with the underlying geometry's feature (like a face)

Reimplemented from Chaos::FImplicitObject.

◆ FindVertexPlanes()

template<class T , int d>
int32 Chaos::TBox< T, d >::FindVertexPlanes ( int32  VertexIndex,
int32 OutVertexPlanes,
int32  MaxVertexPlanes 
) const
inline

◆ GetArea()

template<class T , int d>
FORCEINLINE T Chaos::TBox< T, d >::GetArea ( ) const
inline

◆ GetCenter()

template<class T , int d>
FORCEINLINE TVector< T, d > Chaos::TBox< T, d >::GetCenter ( ) const
inline

◆ GetCenterOfMass()

template<class T , int d>
FORCEINLINE TVector< T, d > Chaos::TBox< T, d >::GetCenterOfMass ( ) const
inline

◆ GetClosestEdge()

template<class T , int d>
FVec3 Chaos::TBox< T, d >::GetClosestEdge ( int32  PlaneIndexHint,
const FVec3 Position,
FVec3 OutEdgePos0,
FVec3 OutEdgePos1 
) const
inline

◆ GetClosestEdgePosition()

template<class T , int d>
TVector< T, d > Chaos::TBox< T, d >::GetClosestEdgePosition ( int32  PlaneIndexHint,
const TVector< T, d > &  Position 
) const
inline

◆ GetClosestEdgeVertices()

template<class T , int d>
bool Chaos::TBox< T, d >::GetClosestEdgeVertices ( int32  PlaneIndexHint,
const FVec3 Position,
int32 OutVertexIndex0,
int32 OutVertexIndex1 
) const
inline

◆ GetEdgePlane()

template<class T , int d>
int32 Chaos::TBox< T, d >::GetEdgePlane ( int32  EdgeIndex,
int32  EdgePlaneIndex 
) const
inline

◆ GetEdgeVertex()

template<class T , int d>
int32 Chaos::TBox< T, d >::GetEdgeVertex ( int32  EdgeIndex,
int32  EdgeVertexIndex 
) const
inline

◆ GetInertiaTensor() [1/2]

template<class T , int d>
FORCEINLINE PMatrix< T, d, d > Chaos::TBox< T, d >::GetInertiaTensor ( const T  Mass) const
inline

◆ GetInertiaTensor() [2/2]

template<class T , int d>
static FORCEINLINE PMatrix< T, 3, 3 > Chaos::TBox< T, d >::GetInertiaTensor ( const T  Mass,
const TVector< T, 3 > &  Dim 
)
inlinestatic

◆ GetMostOpposingPlane()

template<class T , int d>
int32 Chaos::TBox< T, d >::GetMostOpposingPlane ( const TVector< T, d > &  Normal) const
inline

◆ GetMostOpposingPlaneScaled()

template<class T , int d>
int32 Chaos::TBox< T, d >::GetMostOpposingPlaneScaled ( const TVector< T, d > &  Normal,
const TVector< T, d > &  Scale 
) const
inline

◆ GetPlane()

template<class T , int d>
const TPlaneConcrete< FReal > Chaos::TBox< T, d >::GetPlane ( int32  FaceIndex) const
inline

◆ GetPlaneNX()

template<class T , int d>
void Chaos::TBox< T, d >::GetPlaneNX ( const int32  FaceIndex,
FVec3 OutN,
FVec3 OutX 
) const
inline

◆ GetPlaneVertex()

template<class T , int d>
int32 Chaos::TBox< T, d >::GetPlaneVertex ( int32  PlaneIndex,
int32  PlaneVertexIndex 
) const
inline

◆ GetRadius()

template<class T , int d>
virtual FReal Chaos::TBox< T, d >::GetRadius ( ) const
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ GetRotationOfMass()

template<class T , int d>
static FORCEINLINE TRotation< T, d > Chaos::TBox< T, d >::GetRotationOfMass ( )
inlinestatic

◆ GetTypeHash()

template<class T , int d>
virtual uint32 Chaos::TBox< T, d >::GetTypeHash ( ) const
inlineoverridevirtual

◆ GetTypeName() [1/2]

template<class T , int d>
virtual FName Chaos::FImplicitObject::GetTypeName ( ) const
inlinevirtual

Reimplemented from Chaos::FImplicitObject.

◆ GetTypeName() [2/2]

template<class T , int d>
const FName Chaos::FImplicitObject::GetTypeName ( const EImplicitObjectType  InType)
static

◆ GetVertex()

template<class T , int d>
const FVec3 Chaos::TBox< T, d >::GetVertex ( int32  VertexIndex) const
inline

◆ GetVertexPlanes3()

template<class T , int d>
int32 Chaos::TBox< T, d >::GetVertexPlanes3 ( int32  VertexIndex,
int32 PlaneIndex0,
int32 PlaneIndex1,
int32 PlaneIndex2 
) const
inline

◆ GetVolume()

template<class T , int d>
FORCEINLINE T Chaos::TBox< T, d >::GetVolume ( ) const
inline

◆ GetWindingOrder()

template<class T , int d>
FORCEINLINE FReal Chaos::TBox< T, d >::GetWindingOrder ( ) const
inline

◆ LargestAxis()

template<class T , int d>
int Chaos::TBox< T, d >::LargestAxis ( ) const
inline

◆ Max()

template<class T , int d>
FORCEINLINE const TVector< T, d > & Chaos::TBox< T, d >::Max ( ) const
inline

◆ Min()

template<class T , int d>
FORCEINLINE const TVector< T, d > & Chaos::TBox< T, d >::Min ( ) const
inline

◆ NumEdges()

template<class T , int d>
int32 Chaos::TBox< T, d >::NumEdges ( ) const
inline

◆ NumPlanes()

template<class T , int d>
int32 Chaos::TBox< T, d >::NumPlanes ( ) const
inline

◆ NumPlaneVertices()

template<class T , int d>
int32 Chaos::TBox< T, d >::NumPlaneVertices ( int32  PlaneIndex) const
inline

◆ NumVertices()

template<class T , int d>
int32 Chaos::TBox< T, d >::NumVertices ( ) const
inline

◆ operator=() [1/2]

template<class T , int d>
FORCEINLINE TBox< T, d > & Chaos::TBox< T, d >::operator= ( const TBox< T, d > &  Other)
inline

◆ operator=() [2/2]

template<class T , int d>
FORCEINLINE TBox< T, d > & Chaos::TBox< T, d >::operator= ( TBox< T, d > &&  Other)
inline

◆ PhiWithNormal()

template<class T , int d>
virtual FReal Chaos::TBox< T, d >::PhiWithNormal ( const FVec3 Pos,
FVec3 Normal 
) const
inlineoverridevirtual

◆ PhiWithNormalScaled()

template<class T , int d>
virtual FReal Chaos::TBox< T, d >::PhiWithNormalScaled ( const FVec3 Pos,
const FVec3 Scale,
FVec3 Normal 
) const
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ Raycast()

template<class T , int d>
virtual bool Chaos::TBox< T, d >::Raycast ( const FVec3 StartPoint,
const FVec3 Dir,
const FReal  Length,
const FReal  Thickness,
FReal OutTime,
FVec3 OutPosition,
FVec3 OutNormal,
int32 OutFaceIndex 
) const
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ RaycastFast()

template<class T , int d>
static FORCEINLINE bool Chaos::TBox< T, d >::RaycastFast ( const TVector< T, d > &  InMin,
const TVector< T, d > &  InMax,
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 
)
inlinestatic

◆ Serialize() [1/2]

template<class T , int d>
virtual void Chaos::TBox< T, d >::Serialize ( FArchive Ar)
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ Serialize() [2/2]

template<class T , int d>
virtual void Chaos::TBox< T, d >::Serialize ( FChaosArchive Ar)
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.

◆ SerializeAsAABB()

template<class T , int d>
static void Chaos::TBox< T, d >::SerializeAsAABB ( FArchive Ar,
TAABB< T, d > &  AABB 
)
inlinestatic

◆ SerializeAsAABBs() [1/2]

template<class T , int d>
template<typename OtherType >
static void Chaos::TBox< T, d >::SerializeAsAABBs ( FArchive Ar,
TArray< TAABB< OtherType, d > > &  AABBs 
)
inlinestatic

◆ SerializeAsAABBs() [2/2]

template<class T , int d>
template<typename Key >
static void Chaos::TBox< T, d >::SerializeAsAABBs ( FArchive Ar,
TMap< Key, TAABB< T, d > > &  AABBs 
)
inlinestatic

◆ SerializeImp()

template<class T , int d>
FORCEINLINE void Chaos::TBox< T, d >::SerializeImp ( FArchive Ar)
inline

◆ SignedDistance()

template<class T , int d>
FReal Chaos::FImplicitObject::SignedDistance ( const FVec3 x) const

◆ StaticType()

template<class T , int d>
static FORCEINLINE constexpr EImplicitObjectType Chaos::TBox< T, d >::StaticType ( )
inlinestaticconstexpr

◆ Support()

template<class T , int d>
FORCEINLINE_DEBUGGABLE TVector< T, d > Chaos::TBox< T, d >::Support ( const TVector< T, d > &  Direction,
const T  Thickness,
int32 VertexIndex 
) const
inline

◆ SupportCore()

template<class T , int d>
FORCEINLINE_DEBUGGABLE TVector< T, d > Chaos::TBox< T, d >::SupportCore ( const TVector< T, d > &  Direction,
const FReal  InMargin,
FReal OutSupportDelta,
int32 VertexIndex 
) const
inline

◆ SupportCoreScaled()

template<class T , int d>
FORCEINLINE_DEBUGGABLE TVector< T, d > Chaos::TBox< T, d >::SupportCoreScaled ( const TVector< T, d > &  Direction,
const FReal  InMargin,
const TVector< T, d > &  Scale,
T *  OutSupportDelta,
int32 VertexIndex 
) const
inline

◆ SupportCoreSimd()

template<class T , int d>
FORCEINLINE_DEBUGGABLE VectorRegister4Float Chaos::TBox< T, d >::SupportCoreSimd ( const VectorRegister4Float Direction,
const FReal  InMargin 
) const
inline

◆ ToString()

template<class T , int d>
virtual FString Chaos::TBox< T, d >::ToString ( ) const
inlineoverridevirtual

Reimplemented from Chaos::FImplicitObject.


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