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. More... | |
~Ray2 () | |
Empty. | |
Vector2 | operator() (const double &) const |
Computes the location of a vertex along the ray. More... | |
Vector2 | Origin () const |
Return the origin of the ray. | |
Vector2 | Direction () const |
Return the direction of the ray. | |
Protected Attributes | |
Vector2 | c = Vector2::Null |
Origin of the ray. | |
Vector2 | n = Vector2::X |
Direction. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const Ray2 &) |
Overloaded. More... | |
A ray characterized by its origin an unit direction vector.
|
inline |
Computes the location of a vertex along the ray.
t | Parameter. |
|
friend |
Overloaded.
s | Stream. |
ray | The ray. |