G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FBoxSphereBounds Struct Reference

A bounding box and bounding sphere with the same origin. @note The full C++ class is located here : Engine\Source\Runtime\Core\Public\Math\BoxSphereBounds.h. More...

Public Member Functions

Functions
FSphere GetSphere () const
bool opEquals (FBoxSphereBounds Other) const
float ComputeSquaredDistanceFromBoxToPoint (FVector Point) const
FBox GetBox () const
FVector GetBoxExtrema (uint Extrema) const
FBoxSphereBounds opAdd (FBoxSphereBounds Other) const
FBoxSphereBounds ExpandBy (float ExpandAmount) const
FBoxSphereBounds TransformBy (FTransform M) const
FString ToString () const

Static Public Member Functions

Static Functions
static bool BoxesIntersect (FBoxSphereBounds A, FBoxSphereBounds B)
static bool SpheresIntersect (FBoxSphereBounds A, FBoxSphereBounds B, float Tolerance=KINDA_SMALL_NUMBER)

Public Attributes

BoxSphereBounds
FVector BoxExtent
 Holds the extent of the bounding box, which is half the size of the box in 3D space.
float SphereRadius
 Holds the radius of the bounding sphere.
FVector Origin
 Holds the origin of the bounding box and sphere.
Variables
const FSphere Sphere
const FBox Box

Detailed Description

A bounding box and bounding sphere with the same origin. @note The full C++ class is located here : Engine\Source\Runtime\Core\Public\Math\BoxSphereBounds.h.

Member Function Documentation

◆ BoxesIntersect()

bool BoxesIntersect ( FBoxSphereBounds A,
FBoxSphereBounds B )
static

◆ ComputeSquaredDistanceFromBoxToPoint()

float ComputeSquaredDistanceFromBoxToPoint ( FVector Point) const

◆ ExpandBy()

FBoxSphereBounds ExpandBy ( float ExpandAmount) const

◆ GetBox()

FBox GetBox ( ) const

◆ GetBoxExtrema()

FVector GetBoxExtrema ( uint Extrema) const

◆ GetSphere()

FSphere GetSphere ( ) const

◆ opAdd()

FBoxSphereBounds opAdd ( FBoxSphereBounds Other) const

◆ opEquals()

bool opEquals ( FBoxSphereBounds Other) const

◆ SpheresIntersect()

bool SpheresIntersect ( FBoxSphereBounds A,
FBoxSphereBounds B,
float Tolerance = KINDA_SMALL_NUMBER )
static

◆ ToString()

FString ToString ( ) const

◆ TransformBy()

FBoxSphereBounds TransformBy ( FTransform M) const

Member Data Documentation

◆ Box

const FBox Box

◆ BoxExtent

FVector BoxExtent

Holds the extent of the bounding box, which is half the size of the box in 3D space.

◆ Origin

FVector Origin

Holds the origin of the bounding box and sphere.

◆ Sphere

const FSphere Sphere

◆ SphereRadius

float SphereRadius

Holds the radius of the bounding sphere.