Im doing some work using ray-picking in a DirectX project and I just wondered whether there was an actual 'ray' object type? (rather than just storing direction/origin variables)
I know I could create something like
struct ray
{
D3DXVECTOR3 direction
D3DXVECTOR3 origin
};
but does anything already exist? Im currently working in DX9 but I am open to answers in newer versions of DirectX.