#include <geometry.hh>
Public Member Functions | |
| Ray () | |
| Creates a ray pointing from the origin positively along all axes. | |
| Ray (const Point< n > &start, const Vector< n > &dir) | |
| Creates a ray from a point and a direction vector. | |
| const Point< n > & | getStart () const |
| Gets this ray's starting point. | |
| const Vector< n > & | getDirection () const |
| Gets this ray's (normalized) direction vector. | |
| Point< n > | operator() (double d) const |
| Evaluates the ray equation for a given scalar, returning the point. | |
Private Attributes | |
| Point< n > | start |
| Starting point. | |
| Vector< n > | dir |
| (Normalized) direction vector. | |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &, const Ray< n > &) |
| Outputs a ray to a C++ ostream. | |
Definition at line 325 of file geometry.hh.
|
||||||||||||||||
|
Creates a ray from a point and a direction vector.
Definition at line 337 of file geometry.hh. References Ray< n >::dir. |
|
||||||||||||||||
|
Outputs a ray to a C++ ostream. Output looks like ray(p<1,2,...,n>,v<1,2,...,n>) Definition at line 128 of file geometry.impl. |
1.3.5