LLLine Class Reference

#include <llline.h>

Collaboration diagram for LLLine:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLLine ()
 LLLine (const LLVector3 &first_point, const LLVector3 &second_point)
virtual ~LLLine ()
void setPointDirection (const LLVector3 &first_point, const LLVector3 &second_point)
void setPoints (const LLVector3 &first_point, const LLVector3 &second_point)
bool intersects (const LLVector3 &point, F32 radius=DEFAULT_INTERSECTION_ERROR) const
LLVector3 nearestApproach (const LLVector3 &some_point) const
LLVector3 nearestApproach (const LLLine &other_line) const
bool intersectsPlane (LLVector3 &result, const LLLine &plane) const
const LLVector3getPoint () const
const LLVector3getDirection () const

Static Public Member Functions

static bool getIntersectionBetweenTwoPlanes (LLLine &result, const LLLine &first_plane, const LLLine &second_plane)

Protected Attributes

LLVector3 mPoint
LLVector3 mDirection

Friends

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


Detailed Description

Definition at line 33 of file llline.h.


Constructor & Destructor Documentation

LLLine::LLLine (  ) 

Definition at line 29 of file llline.cpp.

LLLine::LLLine ( const LLVector3 first_point,
const LLVector3 second_point 
)

Definition at line 34 of file llline.cpp.

References setPoints().

Here is the call graph for this function:

virtual LLLine::~LLLine (  )  [inline, virtual]

Definition at line 38 of file llline.h.


Member Function Documentation

void LLLine::setPointDirection ( const LLVector3 first_point,
const LLVector3 second_point 
)

Definition at line 46 of file llline.cpp.

References setPoints().

Here is the call graph for this function:

void LLLine::setPoints ( const LLVector3 first_point,
const LLVector3 second_point 
)

Definition at line 39 of file llline.cpp.

References mDirection, mPoint, and LLVector3::normalize().

Referenced by LLLine(), and setPointDirection().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLLine::intersects ( const LLVector3 point,
F32  radius = DEFAULT_INTERSECTION_ERROR 
) const

Definition at line 51 of file llline.cpp.

References mDirection, and mPoint.

LLVector3 LLLine::nearestApproach ( const LLVector3 some_point  )  const

Definition at line 60 of file llline.cpp.

References mDirection, and mPoint.

LLVector3 LLLine::nearestApproach ( const LLLine other_line  )  const

Definition at line 70 of file llline.cpp.

References i, llendl, llwarns, mDirection, mPoint, LLVector3::mV, S32, and SOME_VERY_SMALL_NUMBER.

bool LLLine::intersectsPlane ( LLVector3 result,
const LLLine plane 
) const

Definition at line 119 of file llline.cpp.

References dot(), mDirection, mPoint, and TOO_SMALL_FOR_DIVISION.

Referenced by getIntersectionBetweenTwoPlanes().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLLine::getIntersectionBetweenTwoPlanes ( LLLine result,
const LLLine first_plane,
const LLLine second_plane 
) [static]

Definition at line 149 of file llline.cpp.

References ALMOST_PARALLEL, dot(), intersectsPlane(), mDirection, mPoint, and LLVector3::normalize().

Here is the call graph for this function:

const LLVector3& LLLine::getPoint (  )  const [inline]

Definition at line 64 of file llline.h.

References mPoint.

const LLVector3& LLLine::getDirection (  )  const [inline]

Definition at line 65 of file llline.h.

References mDirection.


Friends And Related Function Documentation

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

Definition at line 107 of file llline.cpp.


Member Data Documentation


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

Generated on Fri May 16 08:51:28 2008 for SecondLife by  doxygen 1.5.5