TBoxSphereBounds::SpheresIntersect

Test whether the spheres from two BoxSphereBounds intersect/overlap.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/BoxSphereBounds.h

Include

#include "Math/BoxSphereBounds.h"

Syntax

static bool SpheresIntersect
(
    const TBoxSphereBounds< T > & A,
    const TBoxSphereBounds< T > & B,
    T Tolerance
)

Remarks

Test whether the spheres from two BoxSphereBounds intersect/overlap.

Returns

true if spheres intersect, false otherwise.

Parameters

Parameter

Description

A

First BoxSphereBounds to test.

B

Second BoxSphereBounds to test.

Tolerance

Error tolerance added to test distance.