Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Sphere Class Reference

#include <Sphere.h>

Public Member Functions

JPH_OVERRIDE_NEW_DELETE Sphere ()=default
 Constructor.
 
 Sphere (const Float3 &inCenter, float inRadius)
 
 Sphere (Vec3Arg inCenter, float inRadius)
 
Vec3 GetSupport (Vec3Arg inDirection) const
 Calculate the support vector for this convex shape.
 
Vec3 GetCenter () const
 
float GetRadius () const
 
bool Overlaps (const Sphere &inB) const
 Test if two spheres overlap.
 
bool Overlaps (const AABox &inOther) const
 Check if this sphere overlaps with a box.
 
void EncapsulatePoint (Vec3Arg inPoint)
 Create the minimal sphere that encapsulates this sphere and inPoint.
 

Constructor & Destructor Documentation

◆ Sphere() [1/3]

JPH_OVERRIDE_NEW_DELETE Sphere::Sphere ( )
inlinedefault

Constructor.

◆ Sphere() [2/3]

Sphere::Sphere ( const Float3 inCenter,
float  inRadius 
)
inline

◆ Sphere() [3/3]

Sphere::Sphere ( Vec3Arg  inCenter,
float  inRadius 
)
inline

Member Function Documentation

◆ EncapsulatePoint()

void Sphere::EncapsulatePoint ( Vec3Arg  inPoint)
inline

Create the minimal sphere that encapsulates this sphere and inPoint.

◆ GetCenter()

Vec3 Sphere::GetCenter ( ) const
inline

◆ GetRadius()

float Sphere::GetRadius ( ) const
inline

◆ GetSupport()

Vec3 Sphere::GetSupport ( Vec3Arg  inDirection) const
inline

Calculate the support vector for this convex shape.

◆ Overlaps() [1/2]

bool Sphere::Overlaps ( const AABox inOther) const
inline

Check if this sphere overlaps with a box.

◆ Overlaps() [2/2]

bool Sphere::Overlaps ( const Sphere inB) const
inline

Test if two spheres overlap.


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