CDXVec Constructors
These overloaded constructors provide various ways to initialize an instance of the CDXVec class.
- CDXVec::CDXVec
- CDXVec::CDXVec( BOOL bInit )
- CDXVec::CDXVec( TYPE x, TYPE y, TYPE z, TYPE t )
- CDXVec::CDXVec( const CDXVec &Other )
CDXVec::CDXVec
Creates the vector and sets all components to zero.
Syntax
CDXVec();
Return Value
No return value.
CDXVec::CDXVec( BOOL bInit )
Constructs and conditionally initializes the vector.
Syntax
CDXVec( BOOL bInit );
Parameters
bInit
[in] TRUE specifies that the vector should be set to {0,0,0,0}. FALSE specifies that no initialization action should be taken.
Return Value
No return value.
CDXVec::CDXVec( TYPE x, TYPE y, TYPE z, TYPE t )
Constructs the vector and initializes the components to specified values.
Syntax
CDXVec( TYPE x, TYPE y, TYPE z, TYPE t );
Parameters
x
[in] X-component of the vector.
y
[in] Y-component of the vector.
z
[in] Z-component of the vector.
t
[in] T-component of the vector.
Return Value
No return value.
CDXVec::CDXVec( const CDXVec &Other )
Copies the specified CDXVec object.
Syntax
CDXVec( const CDXVec &Other );
Parameters
Other
[in] Vector to use for copying.
Return Value
No return value.
CDXVec::CDXVec( const DXVEC Other )
Copy constructor that uses a DXVEC structure.
Syntax
CDXVec( const DXVEC Other );
Parameters
Other
[in] DXVEC structure to use for copying.
Return Value
No return value.