OptiX
3.9
NVIDIA OptiX Acceleration Engine
|
Ray class.
Description
Ray is an encapsulation of a ray mathematical entity. The origin and direction members specify the ray, while the ray_type member specifies which closest-hit/any-hit pair will be used when the ray hits a geometry object. The tmin/tmax members specify the interval over which the ray is valid.
To avoid numerical range problems, the value RT_DEFAULT_MAX can be used to specify an infinite extent.
During C++ compilation, Ray is contained within the optix:: namespace but has global scope during C compilation. Ray's constructors are not available during C compilation.
Members
Constructors
Functions
History
Ray was introduced in OptiX 1.0.
See also rtContextSetRayTypeCount, rtMaterialSetAnyHitProgram, rtMaterialSetClosestHitProgram
Public Attributes | |
float3 | origin |
float3 | direction |
unsigned int | ray_type |
float | tmin |
float | tmax |
float3 Ray::direction |
The direction of the ray
float3 Ray::origin |
The origin of the ray
unsigned int Ray::ray_type |
The ray type associated with this ray
float Ray::tmax |
The max extent associated with this ray
float Ray::tmin |
The min extent associated with this ray