Assignments
Assignments
|
#include <geometry.h>
Public Member Functions | |
Ray (void) | |
Ray (const Point< Dim > &position, const Point< Dim > &direction) | |
Ray | operator+ (const Point< Dim > &p) const |
Ray & | operator+= (const Point< Dim > &p) |
Ray | operator- (const Point< Dim > &p) const |
Ray & | operator-= (const Point< Dim > &p) |
Point< Dim > | operator() (double t) const |
Public Attributes | |
Point< Dim > | position |
Point< Dim > | direction |
This templated class represents a Ray.
Util::Ray< Dim >::Ray | ( | const Point< Dim > & | position, |
const Point< Dim > & | direction | ||
) |
The constructor settign the the position and direction of the ray
This method returns the point at a distance of t along the ray.
This method computes the translation of the ray by p and returns the translated ray.
This method translates the current ray by p.
This method computes the translation of the ray by -p and returns the translated ray.
This method translates the current ray by -p.