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

Comparing trunk/OOPSE-3.0/src/math/Vector3.hpp (file contents):
Revision 1592 by tim, Mon Oct 18 17:07:27 2004 UTC vs.
Revision 1644 by tim, Mon Oct 25 22:46:19 2004 UTC

# Line 48 | Line 48 | namespace oopse {
48    template<typename Real>
49    class Vector3 : public Vector<Real, 3>{
50    public:
51 <
51 >    typedef Real ElemType;
52 >    typedef Real* ElemPoinerType;
53 >    
54      Vector3() : Vector<Real, 3>(){}
55      
56      /** Constructs and initializes a Vector3 from x, y, z coordinates */
# Line 57 | 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      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines