A ray that can be used for intersection testing. More...
Public Member Functions | |
Ray () | |
Constructs and empty ray object. More... | |
Ray (const Ray &other) | |
Copy constructor. More... | |
Ray & | operator= (const Ray &other) |
Assignment operator. More... | |
Vec3d | origin () const |
Returns the ray origin. More... | |
void | setOrigin (const Vec3d &orig) |
Sets the origin (starting point) of the ray. More... | |
Vec3d | direction () const |
Returns the ray direction. More... | |
void | setDirection (const Vec3d &dir) |
Sets the direction of the ray. More... | |
double | minimumDistance () const |
Returns the minimum distance from the origin required for a hit. More... | |
void | setMinimumDistance (double minimum) |
Sets the minimum distance from the origin required for a hit. More... | |
double | maximumDistance () const |
Returns the maximum distance from the origin required for a hit. More... | |
void | setMaximumDistance (double maximum) |
Sets the maximum distance from the origin required for a hit. More... | |
double | pointAndLineSizeInPixels () const |
Returns the point and line size in pixels. More... | |
void | setPointAndLineSizeInPixels (double sizeInPixels) |
Sets the point and line size (in pixels) More... | |
A ray that can be used for intersection testing.
cee::Ray::Ray | ( | ) |
Constructs and empty ray object.
cee::Ray::Ray | ( | const Ray & | other | ) |
Copy constructor.
Vec3d cee::Ray::direction | ( | ) | const |
Returns the ray direction.
double cee::Ray::maximumDistance | ( | ) | const |
Returns the maximum distance from the origin required for a hit.
double cee::Ray::minimumDistance | ( | ) | const |
Returns the minimum distance from the origin required for a hit.
Vec3d cee::Ray::origin | ( | ) | const |
Returns the ray origin.
double cee::Ray::pointAndLineSizeInPixels | ( | ) | const |
Returns the point and line size in pixels.
void cee::Ray::setDirection | ( | const Vec3d & | dir | ) |
Sets the direction of the ray.
void cee::Ray::setMaximumDistance | ( | double | maximum | ) |
Sets the maximum distance from the origin required for a hit.
void cee::Ray::setMinimumDistance | ( | double | minimum | ) |
Sets the minimum distance from the origin required for a hit.
void cee::Ray::setOrigin | ( | const Vec3d & | orig | ) |
Sets the origin (starting point) of the ray.
void cee::Ray::setPointAndLineSizeInPixels | ( | double | sizeInPixels | ) |
Sets the point and line size (in pixels)