OpenVDB 10.0.1
|
A minimal perspective camera for ray generation. More...
#include <nanovdb/examples/benchmark/Camera.h>
Public Member Functions | |
Camera ()=default | |
default Ctor. | |
__hostdev__ | Camera (const Vec3T &eye, const Vec3T &lookat, const Vec3T &up, RealT vfov, RealT aspect) |
Ctor. // vfov is top to bottom in degrees. | |
__hostdev__ void | update (const Vec3T &eye, const Vec3T &lookat, const Vec3T &up, RealT vfov, RealT aspect) |
__hostdev__ RayT | getRay (RealT u, RealT v) const |
{u,v} are are assumed to be [0,1] | |
__hostdev__ const Vec3T & | P () const |
__hostdev__ const Vec3T & | U () const |
__hostdev__ const Vec3T & | V () const |
__hostdev__ const Vec3T & | W () const |
A minimal perspective camera for ray generation.
|
default |
default Ctor.
|
inline |
Ctor. // vfov is top to bottom in degrees.
|
inline |
{u,v} are are assumed to be [0,1]
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |