|
|
| Ray () |
| | Empty.
|
| |
| | Ray (const Vector &, const Vector &) |
| | Creates a ray.
|
| |
|
| ~Ray () |
| | Empty.
|
| |
| Ray | Reflect (const Vector &, const Vector &) |
| | Compute the reflected ray from a ray hitting a surface.
|
| |
| Vector | operator() (const double &) const |
| | Computes the location of a vertex along the ray.
|
| |
|
double | Length () const |
| | Gets the length of the direction vector.
|
| |
|
double | LengthSquared () const |
| | Gets the squared length of the direction vector.
|
| |
| Ray | Scaled (const Vector &) const |
| | Scale the ray.
|
| |
| Ray | Translated (const Vector &) const |
| | Translate the ray.
|
| |
| Ray | Rotated (const Matrix &) const |
| | Rotate the ray.
|
| |
| Ray | InverseTransform (const Frame &) const |
| | Transform a ray.
|
| |
|
Vector | Origin () const |
| | Return the origin of the ray.
|
| |
|
Vector | Direction () const |
| | Return the direction of the ray.
|
| |
A ray characterized by its origin an unit direction vector.
This class should be used in ray-object intersection methods and for ray-tracing.