ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/utils/sysbuilder/Vector3d.hpp
(Generate patch)

Comparing trunk/OOPSE-1.0/utils/sysbuilder/Vector3d.hpp (file contents):
Revision 1427 by tim, Wed Jul 28 18:42:59 2004 UTC vs.
Revision 1444 by tim, Fri Jul 30 14:51:44 2004 UTC

# Line 23 | Line 23 | class Vector3d{
23        this->z = z;
24      }
25  
26     Vector3d(double* r){
27      this->x = r[0];
28      this->y = r[1];
29      this->z = r[2];
30    }
31
26       Vector3d(const Vector3d& v1){
27        this->x = v1.x;
28        this->y = v1.y;  
# Line 236 | Line 230 | class Vector3d{
230      }
231  
232    public:
239    //using anonymous union and struct to support double[3]
240    union{
241      struct{
242        double x;
243        double y;
244        double z;
245      };
233  
234 <      double vec[3];
235 <    };
234 >    double x;
235 >    double y;
236 >    double z;
237   };
238  
239      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines