HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VGEO_Ray Class Reference

#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_Vector3getP () const
 
SYS_FORCE_INLINE const UT_Vector3getID () const
 
SYS_FORCE_INLINE const UT_Vector3getD () const
 
SYS_FORCE_INLINE UT_Vector3 getPt (const float &t) const
 
SYS_FORCE_INLINE const intgetSign () 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_Vector3getN1 () const
 
const UT_Vector3getN2 () const
 
int getMaxD () const
 

Detailed Description

Definition at line 29 of file VGEO_Ray.h.

Constructor & Destructor Documentation

VGEO_Ray::VGEO_Ray ( )
inline

Definition at line 31 of file VGEO_Ray.h.

VGEO_Ray::VGEO_Ray ( const UT_Vector3 P,
const UT_Vector3 D 
)
inline

Definition at line 33 of file VGEO_Ray.h.

Member Function Documentation

void VGEO_Ray::dump ( ) const
inline

Dump the ray to stderr.

Definition at line 153 of file VGEO_Ray.h.

SYS_FORCE_INLINE bool VGEO_Ray::getBoxRange ( const UT_BoundingBox box,
float tmin,
float tmax 
) const
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.

SYS_FORCE_INLINE const UT_Vector3& VGEO_Ray::getD ( ) const
inline

Definition at line 130 of file VGEO_Ray.h.

SYS_FORCE_INLINE const UT_Vector3& VGEO_Ray::getID ( ) const
inline

Definition at line 123 of file VGEO_Ray.h.

int VGEO_Ray::getMaxD ( ) const
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.

const UT_Vector3& VGEO_Ray::getN1 ( ) const
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.

const UT_Vector3& VGEO_Ray::getN2 ( ) const
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.

SYS_FORCE_INLINE const UT_Vector3& VGEO_Ray::getP ( ) const
inline

Definition at line 116 of file VGEO_Ray.h.

SYS_FORCE_INLINE UT_Vector3 VGEO_Ray::getPt ( const float t) const
inline

Definition at line 132 of file VGEO_Ray.h.

SYS_FORCE_INLINE const int* VGEO_Ray::getSign ( ) const
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.

void VGEO_Ray::itranslate ( VGEO_Ray newRay,
const UT_Vector3 t 
) const
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.

void VGEO_Ray::translate ( VGEO_Ray newRay,
const UT_Vector3 t 
) const
inline

Construct a translated version of this ray.

Definition at line 46 of file VGEO_Ray.h.


The documentation for this class was generated from the following file: