#include <Line.h>
Public Member Functions | |
| Line () | |
| Line (Vector &start, Vector &end) | |
| virtual | ~Line () |
| float | dotP (const Line &line) |
| bool | intersect (const Line &line, Vector &interPt, const bool checkPtOnLine=true) |
| Vector | operator * (const Line &line) |
| const Vector & | getDirection () |
| const Vector & | getStart () |
| const Vector & | getEnd () |
| void | setStart (const Vector &start) |
| void | setEnd (const Vector &end) |
| void | setPoints (const Vector &start, const Vector &end) |
| Vector | get2DPerp () |
Protected Attributes | |
| Vector | start_ |
| Vector | end_ |
| Vector | dir_ |
Definition at line 31 of file Line.h.
| float Line::dotP | ( | const Line & | line | ) |
Definition at line 74 of file Line.cpp.
References dir_, and Vector::dotP().
Referenced by intersect().
Definition at line 84 of file Line.cpp.
References dir_, Vector::dotP(), dotP(), getDirection(), getStart(), and start_.
| const Vector & Line::getDirection | ( | ) |
Definition at line 108 of file Line.cpp.
References dir_.
Referenced by HeightMap::getIntersect(), intersect(), and Triangle::rayIntersect().
| const Vector & Line::getStart | ( | ) |
Definition at line 113 of file Line.cpp.
References start_.
Referenced by intersect(), and Triangle::rayIntersect().
| const Vector & Line::getEnd | ( | ) |
| void Line::setStart | ( | const Vector & | start | ) |
| void Line::setEnd | ( | const Vector & | end | ) |
| Vector Line::get2DPerp | ( | ) |
Vector Line::start_ [protected] |
Definition at line 52 of file Line.h.
Referenced by getStart(), intersect(), Line(), setEnd(), setPoints(), and setStart().
Vector Line::end_ [protected] |
Definition at line 52 of file Line.h.
Referenced by getEnd(), Line(), setEnd(), setPoints(), and setStart().
Vector Line::dir_ [protected] |
Definition at line 53 of file Line.h.
Referenced by dotP(), get2DPerp(), getDirection(), intersect(), Line(), operator *(), setEnd(), setPoints(), and setStart().
1.5.3