HDK
|
#include <VGEO_Ray.h>
Public Member Functions | |
VGEO_Ray () | |
VGEO_Ray (const UT_Vector3 &P, const UT_Vector3 &D) | |
void | init (const UT_Vector3 &P, const UT_Vector3 &D) |
Initialize the ray for the given position and direction. More... | |
void | transform (VGEO_Ray &newRay, const VPRM_SpacePtr &space, float now) const |
Construct a transformed version of this ray. More... | |
void | translate (VGEO_Ray &newRay, const UT_Vector3 &t) const |
Construct a translated version of this ray. More... | |
void | itranslate (VGEO_Ray &newRay, const UT_Vector3 &t) const |
SYS_FORCE_INLINE bool | getBoxRange (const UT_BoundingBox &box, float &tmin, float &tmax) const |
SYS_FORCE_INLINE const UT_Vector3 & | getP () const |
SYS_FORCE_INLINE const UT_Vector3 & | getID () const |
SYS_FORCE_INLINE const UT_Vector3 & | getD () const |
SYS_FORCE_INLINE UT_Vector3 | getPt (const float &t) const |
SYS_FORCE_INLINE const int * | getSign () const |
void | save (std::ostream &os) const |
Save the ray as text to the stream. More... | |
void | dump () const |
Dump the ray to stderr. More... | |
const UT_Vector3 & | getN1 () const |
const UT_Vector3 & | getN2 () const |
int | getMaxD () const |
Definition at line 29 of file VGEO_Ray.h.
|
inline |
Definition at line 31 of file VGEO_Ray.h.
|
inline |
Definition at line 33 of file VGEO_Ray.h.
|
inline |
Dump the ray to stderr.
Definition at line 153 of file VGEO_Ray.h.
|
inline |
This method adjusts the ranges for the ray so that tmin is where the ray enters the bounding box, and tmax is where it exists. Returns true when the ray intersects the bounding box.
Definition at line 68 of file VGEO_Ray.h.
|
inline |
Definition at line 130 of file VGEO_Ray.h.
|
inline |
Definition at line 123 of file VGEO_Ray.h.
|
inline |
The following forms are used to represent the ray as a set of two orthogonal planes. The planes are not orthonormal and you MUST call getN1 before you call getN2 or getMaxD.
Definition at line 146 of file VGEO_Ray.h.
|
inline |
The following forms are used to represent the ray as a set of two orthogonal planes. The planes are not orthonormal and you MUST call getN1 before you call getN2 or getMaxD.
Definition at line 140 of file VGEO_Ray.h.
|
inline |
The following forms are used to represent the ray as a set of two orthogonal planes. The planes are not orthonormal and you MUST call getN1 before you call getN2 or getMaxD.
Definition at line 145 of file VGEO_Ray.h.
|
inline |
Definition at line 116 of file VGEO_Ray.h.
|
inline |
Definition at line 132 of file VGEO_Ray.h.
|
inline |
Definition at line 134 of file VGEO_Ray.h.
void VGEO_Ray::init | ( | const UT_Vector3 & | P, |
const UT_Vector3 & | D | ||
) |
Initialize the ray for the given position and direction.
|
inline |
Definition at line 55 of file VGEO_Ray.h.
void VGEO_Ray::save | ( | std::ostream & | os | ) | const |
Save the ray as text to the stream.
void VGEO_Ray::transform | ( | VGEO_Ray & | newRay, |
const VPRM_SpacePtr & | space, | ||
float | now | ||
) | const |
Construct a transformed version of this ray.
|
inline |
Construct a translated version of this ray.
Definition at line 46 of file VGEO_Ray.h.