|
Core 1.0
|
A ray characterized by its origin an unit direction vector. More...
#include <ray.h>
Public Member Functions | |
| Ray2 () | |
| Empty. | |
| Ray2 (const Vector2 &, const Vector2 &) | |
| Creates a ray. | |
| Ray2 (const Ray &) | |
| Creates a ray. | |
| ~Ray2 () | |
| Empty. | |
| Vector2 | operator() (const double &) const |
| Computes the location of a vertex along the ray. | |
| Vector2 | Origin () const |
| Return the origin of the ray. | |
| Vector2 | Direction () const |
| Return the direction of the ray. | |
| Ray2 | InverseTransform (const Frame2 &) const |
| Transform a ray. | |
Protected Attributes | |
| Vector2 | c = Vector2::Null |
| Origin of the ray. | |
| Vector2 | n = Vector2::X |
| Direction. | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const Ray2 &ray) |
| Overloaded. | |
A ray characterized by its origin an unit direction vector.
|
inlineexplicit |
Transform a ray.
| frame | The frame. |
|
inline |
Computes the location of a vertex along the ray.
| t | Parameter. |
|
friend |
Overloaded.
| s | Stream. |
| ray | The ray. |