| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/ray.h>
Public Member Functions | |
| VRS_SERIALIZABLE_NO_SO_CLASS (Ray) | |
| Ray (const Vector &origin=Vector::origin, const Vector &dir=Vector(0.0, 0.0, 1.0)) | |
| A ray is specified by its origin an its direction in 3D. | |
| bool | operator== (const Ray &other) const |
| bool | operator!= (const Ray &other) const |
| void | setOrigin (const Vector &orig) |
| const Vector & | getOrigin () const |
| Set resp. get the origin of the ray. | |
| void | setDirection (const Vector &dir) |
| const Vector & | getDirection () const |
| Set resp. get the direction of the ray. | |
Friends | |
| VRS_CORE_API Ray | operator* (const Matrix &matrix, const Ray &ray) |
| A ray can be transformed by multiplication with a 4x4 Matrix. | |
| VRS::Ray::Ray | ( | const Vector & | origin = Vector::origin, |
|
| const Vector & | dir = Vector(0.0, 0.0, 1.0) | |||
| ) | [explicit] |
A ray is specified by its origin an its direction in 3D.
| VRS::Ray::VRS_SERIALIZABLE_NO_SO_CLASS | ( | Ray | ) |
| bool VRS::Ray::operator== | ( | const Ray & | other | ) | const |
| bool VRS::Ray::operator!= | ( | const Ray & | other | ) | const |
| void VRS::Ray::setOrigin | ( | const Vector & | orig | ) | [inline] |
| const Vector & VRS::Ray::getOrigin | ( | ) | const [inline] |
Set resp. get the origin of the ray.
| void VRS::Ray::setDirection | ( | const Vector & | dir | ) | [inline] |
| const Vector & VRS::Ray::getDirection | ( | void | ) | const [inline] |
Set resp. get the direction of the ray.
A ray can be transformed by multiplication with a 4x4 Matrix.