Public Member Functions | Private Attributes | List of all members
gte::BoundingSphere Class Reference

#include <GteBoundingSphere.h>

Public Member Functions

 BoundingSphere ()
 
 BoundingSphere (BoundingSphere const &sphere)
 
void ComputeFromData (int numVertices, int vertexSize, char const *data)
 
Vector4< float > GetCenter () const
 
float GetRadius () const
 
void GrowToContain (BoundingSphere const &sphere)
 
BoundingSphereoperator= (BoundingSphere const &sphere)
 
void SetCenter (Vector4< float > const &center)
 
void SetRadius (float radius)
 
bool TestIntersection (Vector4< float > const &origin, Vector4< float > const &direction, float tmin, float tmax) const
 
bool TestIntersection (BoundingSphere const &sphere) const
 
bool TestIntersection (BoundingSphere const &sphere, float tmax, Vector4< float > const &velocity0, Vector4< float > const &velocity1) const
 
void TransformBy (Transform const &transform, BoundingSphere &sphere) const
 
int WhichSide (CullingPlane const &plane) const
 
 ~BoundingSphere ()
 

Private Attributes

Vector4< float > mTuple
 

Detailed Description

Definition at line 16 of file GteBoundingSphere.h.

Constructor & Destructor Documentation

BoundingSphere::~BoundingSphere ( )

Definition at line 13 of file GteBoundingSphere.cpp.

BoundingSphere::BoundingSphere ( )

Definition at line 17 of file GteBoundingSphere.cpp.

BoundingSphere::BoundingSphere ( BoundingSphere const &  sphere)

Definition at line 23 of file GteBoundingSphere.cpp.

Member Function Documentation

void BoundingSphere::ComputeFromData ( int  numVertices,
int  vertexSize,
char const *  data 
)

Definition at line 106 of file GteBoundingSphere.cpp.

Vector4< float > gte::BoundingSphere::GetCenter ( ) const
inline

Definition at line 99 of file GteBoundingSphere.h.

float gte::BoundingSphere::GetRadius ( ) const
inline

Definition at line 104 of file GteBoundingSphere.h.

void BoundingSphere::GrowToContain ( BoundingSphere const &  sphere)

Definition at line 53 of file GteBoundingSphere.cpp.

BoundingSphere & BoundingSphere::operator= ( BoundingSphere const &  sphere)

Definition at line 29 of file GteBoundingSphere.cpp.

void gte::BoundingSphere::SetCenter ( Vector4< float > const &  center)
inline

Definition at line 87 of file GteBoundingSphere.h.

void gte::BoundingSphere::SetRadius ( float  radius)
inline

Definition at line 94 of file GteBoundingSphere.h.

bool BoundingSphere::TestIntersection ( Vector4< float > const &  origin,
Vector4< float > const &  direction,
float  tmin,
float  tmax 
) const

Definition at line 145 of file GteBoundingSphere.cpp.

bool BoundingSphere::TestIntersection ( BoundingSphere const &  sphere) const

Definition at line 233 of file GteBoundingSphere.cpp.

bool BoundingSphere::TestIntersection ( BoundingSphere const &  sphere,
float  tmax,
Vector4< float > const &  velocity0,
Vector4< float > const &  velocity1 
) const

Definition at line 249 of file GteBoundingSphere.cpp.

void BoundingSphere::TransformBy ( Transform const &  transform,
BoundingSphere sphere 
) const

Definition at line 95 of file GteBoundingSphere.cpp.

int BoundingSphere::WhichSide ( CullingPlane const &  plane) const

Definition at line 35 of file GteBoundingSphere.cpp.

Member Data Documentation

Vector4<float> gte::BoundingSphere::mTuple
private

Definition at line 83 of file GteBoundingSphere.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:05