Line Class Reference

#include <Line.h>

List of all members.

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 VectorgetDirection ()
const VectorgetStart ()
const VectorgetEnd ()
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_


Detailed Description

Definition at line 31 of file Line.h.


Constructor & Destructor Documentation

Line::Line (  ) 

Definition at line 32 of file Line.cpp.

Line::Line ( Vector start,
Vector end 
)

Definition at line 37 of file Line.cpp.

References dir_, end_, and start_.

Line::~Line (  )  [virtual]

Definition at line 45 of file Line.cpp.


Member Function Documentation

float Line::dotP ( const Line line  ) 

Definition at line 74 of file Line.cpp.

References dir_, and Vector::dotP().

Referenced by intersect().

bool Line::intersect ( const Line line,
Vector interPt,
const bool  checkPtOnLine = true 
)

Definition at line 84 of file Line.cpp.

References dir_, Vector::dotP(), dotP(), getDirection(), getStart(), and start_.

Vector Line::operator * ( const Line line  ) 

Definition at line 69 of file Line.cpp.

References dir_.

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 (  ) 

Definition at line 118 of file Line.cpp.

References end_.

Referenced by HeightMap::getIntersect().

void Line::setStart ( const Vector start  ) 

Definition at line 57 of file Line.cpp.

References dir_, end_, and start_.

Referenced by GLCamera::getDirectionFromPt().

void Line::setEnd ( const Vector end  ) 

Definition at line 63 of file Line.cpp.

References dir_, end_, and start_.

Referenced by GLCamera::getDirectionFromPt().

void Line::setPoints ( const Vector start,
const Vector end 
)

Definition at line 50 of file Line.cpp.

References dir_, end_, and start_.

Vector Line::get2DPerp (  ) 

Definition at line 79 of file Line.cpp.

References dir_, and Vector::get2DPerp().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3