CDXVec Class

The CDXVec template class is used to simplify construction and manipulation of the DXVEC data type. The template for the class shown here can be found in the header file Dxvector.h.

#define CDXV_C CDXVec>TYPE, eBndType<
#define CDXV_T ((TYPE*)u.D)
#define CDXV_O( OtherVec ) ((TYPE*)OtherVec.u.D)

template<class TYPE, DXBNDTYPE eBndType>
class CDXVec : public DXVEC

The DXVEC structure is a union used to represent a four dimensional (x, y, z, t) vector, which can describe a two-dimensional (2-D) or three-dimensional (3-D) position in many of the Microsoft® DirectX® Transform interfaces. The union allows four vector types defined by the DXBNDTYPE enumeration. There are four template type definitions corresponding to each of the union types. Use the following:

Member Functions


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.