D3DX10_INTERSECT_INFO structure

Describes a ray-triangle intersection.

Syntax

typedef struct D3DX10_INTERSECT_INFO {
  UINT  FaceIndex;
  FLOAT U;
  FLOAT V;
  FLOAT Dist;
} D3DX10_INTERSECT_INFO, *LPD3DX10_INTERSECT_INFO;

Members

FaceIndex

Type: UINT

Index of the triangle that hit the ray.

U

Type: FLOAT

Barycentric coordinate within the triangle where the ray intersects.

V

Type: FLOAT

Barycentric coordinate within the triangle where the ray intersects.

Dist

Type: FLOAT

Distance along the ray where the intersection occurred.

Remarks

Barycentric coordinates define a point inside a triangle in terms of the triangle's vertices. For a more in-depth description of barycentric coordinates, see Mathworld's Barycentric Coordinates Description.

Requirements

Requirement Value
Header
D3DX10.h

See also

D3DX Structures