ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/math/Vector3.hpp
(Generate patch)

Comparing:
trunk/OOPSE-3.0/src/math/Vector3.hpp (file contents), Revision 1630 by tim, Thu Oct 21 21:31:39 2004 UTC vs.
branches/new_design/OOPSE-3.0/src/math/Vector3.hpp (file contents), Revision 1695 by tim, Mon Nov 1 22:52:57 2004 UTC

# Line 59 | Line 59 | namespace oopse {
59        data_[1] = y;
60        data_[2] = z;
61      }
62 +
63 +    /** Constructs and initializes from an array*/
64 +    inline Vector3(double* array) : Vector<Real, 3>(array) {}
65      
66      inline Vector3(const Vector<Real, 3>& v) : Vector<Real, 3>(v) {}
67      
# Line 125 | Line 128 | namespace oopse {
128    }
129      
130    typedef Vector3<double> Vector3d;    
131 +
132 +    const Vector3d V3Zero(0.0 , 0.0, 0.0);
133 +    const Vector3d V3X( 1.0, 0.0, 0.0 ) ;
134 +    const Vector3d V3Y( 0.0, 1.0, 0.0 ) ;
135 +    const Vector3d V3Z ( 0.0, 0.0, 1.0 ) ;    
136    
137   }
138  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines