3DLDF defines a number of data types for various reasons, e.g., for the
sake of convenience, for use in conditional compilation, or as return
values of functions. Some of these data types can be defined using
typedef, while others are defined as structs.
The typedefs and utility structures described in this chapter are found in pspglb.web. Others, that contain objects of types defined in 3DLDF, are described in subsequent chapters.
Synonymous either with
floatordouble, depending on the values of the preprocessor variablesLDF_REAL_FLOATandLDF_REAL_DOUBLE. The meaning ofrealis determined by means of conditional compilation. Ifrealisfloat, 3DLDF will require less memory than ifrealisdouble, but its calculations will be less precise.realis “typedeffed” tofloatby default.
All three data elements of
real_triplearereals. It also has two constructors, described below. There are no other member functions.
The constructor taking no arguments sets
first,second, andthirdto 0. The constructor taking threerealarguments setsfirstto a,secondto b, andthirdto c.
A
Matrixis a 4 X 4 array ofreal, e.g.,Matrix M;==real M[4][4]. It is used inclass Transformfor storing transformation matrices. See Transforms, and See Transform Reference, for more information.