Ketchup Engine
Loading...
Searching...
No Matches
BSphere Class Reference

#include <BSphere.h>

Inheritance diagram for BSphere:
Inheritance graph
Collaboration diagram for BSphere:
Collaboration graph

Public Member Functions

 BSphere ()
 
 BSphere (const BSphere &)=delete
 
BSphereoperator= (const BSphere &)=delete
 
 ~BSphere ()
 
Vect GetCenter () const
 Gets the center of the BSphere.
 
float GetRadius () const
 Gets the radius of the BSphere.
 
void DebugView (const Vect &col) const override
 
void ComputeData (Model *mod, const Matrix &mat) override
 
- Public Member Functions inherited from CollisionVolume
 CollisionVolume ()=default
 
 CollisionVolume (const CollisionVolume &)=delete
 
CollisionVolumeoperator= (const CollisionVolume &)=delete
 
virtual ~CollisionVolume ()
 

Private Member Functions

bool IntersectAccept (const CollisionVolume &visitor) const override
 
bool IntersectVisit (const BSphere &other) const override
 
bool IntersectVisit (const AABB &other) const override
 

Private Attributes

Vect m_center
 
float m_radius
 

Constructor & Destructor Documentation

◆ BSphere() [1/2]

BSphere::BSphere ( )

◆ BSphere() [2/2]

BSphere::BSphere ( const BSphere )
delete

◆ ~BSphere()

BSphere::~BSphere ( )

Member Function Documentation

◆ ComputeData()

void BSphere::ComputeData ( Model *  mod,
const Matrix &  mat 
)
overridevirtual

Implements CollisionVolume.

◆ DebugView()

void BSphere::DebugView ( const Vect &  col) const
overridevirtual

Implements CollisionVolume.

◆ GetCenter()

Vect BSphere::GetCenter ( ) const

Gets the center of the BSphere.

Haru, 3/8/2023.

Returns
The center.

◆ GetRadius()

float BSphere::GetRadius ( ) const

Gets the radius of the BSphere.

Haru, 3/8/2023.

Returns
The radius.

◆ IntersectAccept()

bool BSphere::IntersectAccept ( const CollisionVolume visitor) const
overrideprivatevirtual

Implements CollisionVolume.

◆ IntersectVisit() [1/2]

bool BSphere::IntersectVisit ( const AABB other) const
overrideprivatevirtual

Implements CollisionVolume.

◆ IntersectVisit() [2/2]

bool BSphere::IntersectVisit ( const BSphere other) const
overrideprivatevirtual

Implements CollisionVolume.

◆ operator=()

BSphere & BSphere::operator= ( const BSphere )
delete

Member Data Documentation

◆ m_center

Vect BSphere::m_center
private

◆ m_radius

float BSphere::m_radius
private

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