FMath/FMVector4.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2005-2006 Feeling Software Inc.
00003     MIT License: http://www.opensource.org/licenses/mit-license.php
00004 */
00005 
00011 #ifndef _FM_VECTOR4_H_
00012 #define _FM_VECTOR4_H_
00013 
00020 class FCOLLADA_EXPORT FMVector4
00021 {
00022 public:
00023     float x;    
00024     float y;    
00025     float z;    
00026     float w;    
00031     #ifndef _DEBUG
00032     FMVector4() {}
00033     #else
00034     FMVector4() { x = 123456789.0f; y = 123456789.0f; z = 123456789.0f; w = 123456789.0f; }
00035     #endif 
00036 
00048     FMVector4(FMVector3 v, float _w) { x = v.x; y = v.y; z = v.z; w = _w; }
00049 
00058     FMVector4(float _x, float _y, float _z, float _w) { x = _x; y = _y; z = _z; w = _w; }
00059 
00060 public:
00066     inline operator float*() { return &x; }
00067 
00073     inline operator const float*() const { return &x; }
00074 
00075 public:
00076     static const FMVector4 Zero;    
00077 };
00078 
00079 #endif // _FM_VECTOR4_H_

Generated on Fri May 12 16:44:39 2006 for FCollada by  doxygen 1.4.6-NO