#include <llline.h>
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 LLVector3 & | getPoint () const |
const LLVector3 & | getDirection () 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) |
Definition at line 33 of file llline.h.
LLLine::LLLine | ( | ) |
Definition at line 29 of file llline.cpp.
Definition at line 34 of file llline.cpp.
References setPoints().
Definition at line 46 of file llline.cpp.
References setPoints().
Definition at line 39 of file llline.cpp.
References mDirection, mPoint, and LLVector3::normalize().
Referenced by LLLine(), and setPointDirection().
bool LLLine::intersects | ( | const LLVector3 & | point, | |
F32 | radius = DEFAULT_INTERSECTION_ERROR | |||
) | const |
Definition at line 70 of file llline.cpp.
References i, llendl, llwarns, mDirection, mPoint, LLVector3::mV, S32, and SOME_VERY_SMALL_NUMBER.
Definition at line 119 of file llline.cpp.
References dot(), mDirection, mPoint, and TOO_SMALL_FOR_DIVISION.
Referenced by getIntersectionBetweenTwoPlanes().
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().
const LLVector3& LLLine::getPoint | ( | ) | const [inline] |
const LLVector3& LLLine::getDirection | ( | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | output_stream, | |
const LLLine & | line | |||
) | [friend] |
Definition at line 107 of file llline.cpp.
LLVector3 LLLine::mPoint [protected] |
Definition at line 70 of file llline.h.
Referenced by getIntersectionBetweenTwoPlanes(), getPoint(), intersects(), intersectsPlane(), nearestApproach(), operator<<(), and setPoints().
LLVector3 LLLine::mDirection [protected] |
Definition at line 71 of file llline.h.
Referenced by getDirection(), getIntersectionBetweenTwoPlanes(), intersects(), intersectsPlane(), nearestApproach(), operator<<(), and setPoints().