NVIDIA IndeX API nvidia_logo_transpbg.gif Up

Ray data structure. More...

#include <xac_interface_scene_elements_doc.h>

Public Member Functions

 Ray (const float3 &in_origin, const float3 &in_direction, const float3 &in_direction_rec)
 Default constructor. More...
 
 Ray (const float3 &in_origin, const float3 &in_direction)
 Constructor computing the reciprocal direction. More...
 
const float3 & get_origin () const
 Get the ray origin position. More...
 
const float3 & get_direction () const
 Get the ray direction vector. More...
 
const float3 & get_direction_reciprocal () const
 Get the ray reciprocal direction vector. More...
 

Detailed Description

Ray data structure.

Constructor & Destructor Documentation

 Ray() [1/2]

nv::index::xac::Ray::Ray ( const float3 &  in_origin,
const float3 &  in_direction,
const float3 &  in_direction_rec 
)
inline

Default constructor.

 Ray() [2/2]

nv::index::xac::Ray::Ray ( const float3 &  in_origin,
const float3 &  in_direction 
)
inline

Constructor computing the reciprocal direction.

Member Function Documentation

 get_direction()

const float3 & nv::index::xac::Ray::get_direction ( ) const

Get the ray direction vector.

 get_direction_reciprocal()

const float3 & nv::index::xac::Ray::get_direction_reciprocal ( ) const

Get the ray reciprocal direction vector.

 get_origin()

const float3 & nv::index::xac::Ray::get_origin ( ) const

Get the ray origin position.


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