D3DXINTERSECTINFO
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXINTERSECTINFO Structure


Describes a ray-triangle intersection.

Syntax

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 triangle where the ray intersects.
V
Barycentric coordinate within the triangle where the ray intersects.
Dist
Distance along the ray where the intersection occurred.

Structure Information

Headerd3dx9mesh.h
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.