GLC_Line3d : Math 3d line representation. More...
#include <glc_line3d.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_Line3d () | |
| Default constructor. | |
| GLC_Line3d (const GLC_Point3d &point, const GLC_Vector3d &vector) | |
| Construct a 3d line with the given 3d point and vector. | |
| GLC_Line3d (const GLC_Line3d &line) | |
| Construct a 3d line with the given 3d line. | |
| ~GLC_Line3d () | |
| Destructor. | |
Get Functions | |
| GLC_Point3d | startingPoint () const |
| Return the starting 3d point of this line. | |
| GLC_Vector3d | direction () const |
| Return the direction vector of this line. | |
Set Functions | |
| void | setStartingPoint (const GLC_Point3d &point) |
| Set the starting point of this 3d line. | |
| void | setDirection (const GLC_Vector3d &direction) |
| Set the direction vector of this line. | |
Private Attributes | |
| GLC_Point3d | m_Point |
| Starting point of the 3d line. | |
| GLC_Vector3d | m_Vector |
| Vector of the line. | |
GLC_Line3d : Math 3d line representation.
GLC_Line3d is definined by a 3d point and a vector
Definition at line 39 of file glc_line3d.h.
| GLC_Line3d::GLC_Line3d | ( | ) |
Default constructor.
Definition at line 28 of file glc_line3d.cpp.
| GLC_Line3d::GLC_Line3d | ( | const GLC_Point3d & | point, | |
| const GLC_Vector3d & | vector | |||
| ) |
Construct a 3d line with the given 3d point and vector.
Definition at line 35 of file glc_line3d.cpp.
| GLC_Line3d::GLC_Line3d | ( | const GLC_Line3d & | line | ) |
Construct a 3d line with the given 3d line.
Definition at line 43 of file glc_line3d.cpp.
| GLC_Line3d::~GLC_Line3d | ( | ) |
Destructor.
Definition at line 51 of file glc_line3d.cpp.
| GLC_Vector3d GLC_Line3d::direction | ( | ) | const [inline] |
Return the direction vector of this line.
Definition at line 69 of file glc_line3d.h.
Referenced by GLC_RotationManipulator::doManipulate(), glc::lineIntersectPlane(), and glc::project().
| void GLC_Line3d::setDirection | ( | const GLC_Vector3d & | direction | ) | [inline] |
Set the direction vector of this line.
Definition at line 84 of file glc_line3d.h.
| void GLC_Line3d::setStartingPoint | ( | const GLC_Point3d & | point | ) | [inline] |
Set the starting point of this 3d line.
Definition at line 80 of file glc_line3d.h.
| GLC_Point3d GLC_Line3d::startingPoint | ( | ) | const [inline] |
Return the starting 3d point of this line.
Definition at line 65 of file glc_line3d.h.
Referenced by GLC_RotationManipulator::doManipulate(), and glc::lineIntersectPlane().
GLC_Point3d GLC_Line3d::m_Point [private] |
Starting point of the 3d line.
Definition at line 93 of file glc_line3d.h.
GLC_Vector3d GLC_Line3d::m_Vector [private] |
Vector of the line.
Definition at line 96 of file glc_line3d.h.