#include <ray3D.h>
Public Member Functions | |
| Ray3D () | |
| The default constructor initializes to the ray which starts at the origin and points along the X axis. | |
| Ray3D (const Vector3D &point, const Vector3D &direction, bool normalize=true) | |
| This constructor initializes the ray using a point and a direction. | |
| Ray3D (const Ray3D &source) | |
| The copy constructor deep copies its argument. | |
| ~Ray3D () | |
| Destructor. | |
| Ray3D & | operator= (const Ray3D &source) |
| The assignment operator deep copies its argument. | |
| const Vector3D & | getDirectionVector () const |
| This member function returns the direction of the ray. | |
| const Vector3D & | getOrigin () const |
| This member function returns the start point of the ray. | |
Definition at line 28 of file ray3D.h.
| dlr::geometry::Ray3D::Ray3D | ( | ) | [inline] |
| dlr::geometry::Ray3D::Ray3D | ( | const Vector3D & | point, | |
| const Vector3D & | direction, | |||
| bool | normalize = true | |||
| ) |
This constructor initializes the ray using a point and a direction.
| point | This argument specifies the start point of the ray. | |
| direction | This argument specifies the direction of the ray. | |
| normalized | If the direction vector is already normalized to unit length, then you can save some computation by setting this argument to false. |
Definition at line 27 of file ray3D.cpp.
References dlr::numeric::magnitude().
| dlr::geometry::Ray3D::Ray3D | ( | const Ray3D & | source | ) |
The assignment operator deep copies its argument.
| source | This argument is the class instance to be copied. |
Definition at line 52 of file ray3D.cpp.
References m_direction, and m_origin.
| const Vector3D& dlr::geometry::Ray3D::getDirectionVector | ( | ) | const [inline] |
This member function returns the direction of the ray.
Definition at line 89 of file ray3D.h.
Referenced by dlr::geometry::findIntersect(), and dlr::geometry::operator<<().
| const Vector3D& dlr::geometry::Ray3D::getOrigin | ( | ) | const [inline] |
This member function returns the start point of the ray.
Definition at line 99 of file ray3D.h.
Referenced by dlr::geometry::findIntersect(), and dlr::geometry::operator<<().
1.5.2