LLSphere Class Reference

#include <llsphere.h>

Collaboration diagram for LLSphere:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLSphere ()
 LLSphere (const LLVector3 &center, F32 radius)
void set (const LLVector3 &center, F32 radius)
void setCenter (const LLVector3 &center)
void setRadius (F32 radius)
const LLVector3getCenter () const
F32 getRadius () const
BOOL contains (const LLSphere &other_sphere) const
BOOL overlaps (const LLSphere &other_sphere) const
F32 getOverlap (const LLSphere &other_sphere) const
bool operator== (const LLSphere &rhs) const

Static Public Member Functions

static void collapse (std::vector< LLSphere > &sphere_list)
static LLSphere getBoundingSphere (const LLSphere &first_sphere, const LLSphere &second_sphere)
static LLSphere getBoundingSphere (const std::vector< LLSphere > &sphere_list)

Protected Attributes

LLVector3 mCenter
F32 mRadius

Friends

std::ostream & operator<< (std::ostream &output_stream, const LLSphere &line)


Detailed Description

Definition at line 32 of file llsphere.h.


Constructor & Destructor Documentation

LLSphere::LLSphere (  ) 

Definition at line 25 of file llsphere.cpp.

Referenced by getBoundingSphere().

Here is the caller graph for this function:

LLSphere::LLSphere ( const LLVector3 center,
F32  radius 
)

Definition at line 30 of file llsphere.cpp.


Member Function Documentation

void LLSphere::set ( const LLVector3 center,
F32  radius 
)

Definition at line 35 of file llsphere.cpp.

References mCenter, and setRadius().

Referenced by getBoundingSphere().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSphere::setCenter ( const LLVector3 center  ) 

Definition at line 41 of file llsphere.cpp.

References mCenter.

Referenced by randomize_sphere(), and LLPrimLinkInfo< DATA_TYPE >::transform().

Here is the caller graph for this function:

void LLSphere::setRadius ( F32  radius  ) 

Definition at line 46 of file llsphere.cpp.

References mRadius.

Referenced by randomize_sphere(), and set().

Here is the caller graph for this function:

const LLVector3 & LLSphere::getCenter (  )  const

Definition at line 55 of file llsphere.cpp.

References mCenter.

Referenced by LLPrimLinkInfo< DATA_TYPE >::get_span(), LLPrimLinkInfo< DATA_TYPE >::getCenter(), and LLPrimLinkInfo< DATA_TYPE >::transform().

Here is the caller graph for this function:

F32 LLSphere::getRadius (  )  const

BOOL LLSphere::contains ( const LLSphere other_sphere  )  const

Definition at line 66 of file llsphere.cpp.

References FALSE, mCenter, mRadius, and TRUE.

Referenced by LLPrimLinkInfo< DATA_TYPE >::append(), and LLPrimLinkInfo< DATA_TYPE >::merge().

Here is the caller graph for this function:

BOOL LLSphere::overlaps ( const LLSphere other_sphere  )  const

Definition at line 73 of file llsphere.cpp.

References FALSE, mCenter, mRadius, and TRUE.

F32 LLSphere::getOverlap ( const LLSphere other_sphere  )  const

Definition at line 81 of file llsphere.cpp.

References mCenter, and mRadius.

void LLSphere::collapse ( std::vector< LLSphere > &  sphere_list  )  [static]

Definition at line 102 of file llsphere.cpp.

LLSphere LLSphere::getBoundingSphere ( const LLSphere first_sphere,
const LLSphere second_sphere 
) [static]

Definition at line 141 of file llsphere.cpp.

References getRadius(), LLVector3::length(), llmax(), llmin(), LLSphere(), mCenter, LLVector3::normVec(), and LLVector3::setVec().

Referenced by LLPrimLinkInfo< DATA_TYPE >::computeBoundingSphere(), and getBoundingSphere().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSphere LLSphere::getBoundingSphere ( const std::vector< LLSphere > &  sphere_list  )  [static]

Definition at line 174 of file llsphere.cpp.

References getBoundingSphere(), i, LLVector3::length(), llmin(), LLVector3::mV, S32, set(), VX, VY, and VZ.

Here is the call graph for this function:

bool LLSphere::operator== ( const LLSphere rhs  )  const

Definition at line 87 of file llsphere.cpp.

References mCenter, and mRadius.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output_stream,
const LLSphere line 
) [friend]

Definition at line 94 of file llsphere.cpp.


Member Data Documentation

F32 LLSphere::mRadius [protected]

Definition at line 68 of file llsphere.h.

Referenced by contains(), getOverlap(), getRadius(), operator<<(), operator==(), overlaps(), and setRadius().


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

Generated on Fri May 16 09:06:28 2008 for SecondLife by  doxygen 1.5.5