# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CBSphere Class Reference

A bounding Sphere. More...

#include <bsphere.h>

Collaboration diagram for NLMISC::CBSphere:

Collaboration graph
[legend]
List of all members.

Public Methods

 CBSphere ()
 Empty Constructor. More...

 CBSphere (const CVector & center, float radius)
 Constructor. More...

bool clipFront (const CPlane &p) const
 Is the bbox partially in front of the plane?? p MUST be normalized. More...

bool clipBack (const CPlane &p) const
 Is the bbox partially in back of the plane?? p MUST be normalized. More...

bool include (const CVector &p) const
 Does the sphere include this point? More...

bool include (const CBSphere &s) const
 Does the sphere include TOTALY this sphere? More...

bool intersect (const CBSphere &s) const
 Does the sphere intersect the other? More...


Public Attributes

CVector Center
float Radius

Detailed Description

A bounding Sphere.

Author(s):
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 47 of file bsphere.h.


Constructor & Destructor Documentation

NLMISC::CBSphere::CBSphere ( ) [inline]
 

Empty Constructor.

Definition at line 54 of file bsphere.h.

NLMISC::CBSphere::CBSphere ( const CVector & center,
float radius ) [inline]
 

Constructor.

Definition at line 56 of file bsphere.h.


Member Function Documentation

bool NLMISC::CBSphere::clipBack ( const CPlane & p ) const
 

Is the bbox partially in back of the plane?? p MUST be normalized.

Definition at line 47 of file bsphere.cpp.

bool NLMISC::CBSphere::clipFront ( const CPlane & p ) const
 

Is the bbox partially in front of the plane?? p MUST be normalized.

Definition at line 34 of file bsphere.cpp.

bool NLMISC::CBSphere::include ( const CBSphere & s ) const
 

Does the sphere include TOTALY this sphere?

Definition at line 66 of file bsphere.cpp.

bool NLMISC::CBSphere::include ( const CVector & p ) const
 

Does the sphere include this point?

Definition at line 60 of file bsphere.cpp.

bool NLMISC::CBSphere::intersect ( const CBSphere & s ) const
 

Does the sphere intersect the other?

Definition at line 76 of file bsphere.cpp.


Member Data Documentation

CVector NLMISC::CBSphere::Center
 

Definition at line 50 of file bsphere.h.

float NLMISC::CBSphere::Radius
 

Definition at line 51 of file bsphere.h.


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