#include <Ray.h>
Inheritance diagram for gmtl::Ray:


Public Methods | |
| Ray () | |
| Constructs a ray at the origin with a zero vector. More... | |
| Ray (const Point< DATA_TYPE, 3 > &origin, const Vec< DATA_TYPE, 3 > &dir) | |
| Constructs a ray with the given origin and vector. More... | |
| Ray (const Ray &lineseg) | |
| Constructs an exact duplicate of the given ray. More... | |
| const Point< DATA_TYPE, 3 > & | getOrigin () const |
| Gets the origin of the ray. More... | |
| void | setOrigin (const Point< DATA_TYPE, 3 > &origin) |
| Sets the origin point for this ray. More... | |
| const Vec< DATA_TYPE, 3 > & | getDir () const |
| Gets the vector describing the direction and length of the ray. More... | |
| void | setDir (const Vec< DATA_TYPE, 3 > &dir) |
| Sets the vector describing the direction and length of the ray. More... | |
Public Attributes | |
| Point< DATA_TYPE, 3 > | mOrigin |
| The origin of the ray. More... | |
| Vec< DATA_TYPE, 3 > | mDir |
| The vector along which the ray lies. More... | |
This is represented by a point origin O and a normalized vector direction. Any point on the ray can be described as
P(s) = O + Vs
where 0 <= s <= 1
| DATA_TYPE | the internal type used for the point and vector |
Definition at line 55 of file Ray.h.
|
|||||||||
|
Constructs a ray at the origin with a zero vector.
Definition at line 61 of file Ray.h. Referenced by gmtl::LineSeg::LineSeg, and Ray.
00062 {}
|
|
||||||||||||||||
|
Constructs a ray with the given origin and vector.
Definition at line 71 of file Ray.h.
|
|
||||||||||
|
Constructs an exact duplicate of the given ray.
Definition at line 82 of file Ray.h. References mDir, mOrigin, and Ray.
|
|
|||||||||
|
Gets the vector describing the direction and length of the ray.
Definition at line 113 of file Ray.h. References mDir.
00114 {
00115 return mDir;
00116 }
|
|
|||||||||
|
Gets the origin of the ray.
Definition at line 93 of file Ray.h. References mOrigin.
00094 {
00095 return mOrigin;
00096 }
|
|
||||||||||
|
Sets the vector describing the direction and length of the ray.
Definition at line 123 of file Ray.h. References mDir.
00124 {
00125 mDir = dir;
00126 }
|
|
||||||||||
|
Sets the origin point for this ray.
Definition at line 103 of file Ray.h. References mOrigin.
00104 {
00105 mOrigin = origin;
00106 }
|
|
|||||
|
The vector along which the ray lies.
Definition at line 137 of file Ray.h. Referenced by getDir, gmtl::LineSeg::LineSeg, Ray, and setDir. |
|
|||||
|
The origin of the ray.
Definition at line 132 of file Ray.h. Referenced by getOrigin, gmtl::LineSeg::LineSeg, Ray, and setOrigin. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002