Microsoft DirectX 8.1 (C++)

D3DXINTERSECTINFO

Describes a ray–triangle intersection.

typedef struct _D3DXINTERSECTINFO
{
    DWORD FaceIndex;
    FLOAT U;
    FLOAT V;
    FLOAT Dist;
} D3DXINTERSECTINFO, *LPD3DXINTERSECTINFO;;

Members

FaceIndex
Index of the triangle that hit the ray.
U
Barycentric coordinate within the triagle where the ray intersects.
V
Barycentric coordinate within the triagle where the ray intersects.
Dist
Distance along the ray where the intersection occurred.

Requirements

Header: Declared in D3dx8mesh.h.