--- trunk/src/math/Vector3.hpp 2004/10/18 16:29:53 97 +++ trunk/src/math/Vector3.hpp 2004/10/25 22:46:19 151 @@ -48,7 +48,9 @@ namespace oopse { template class Vector3 : public Vector{ public: - + typedef Real ElemType; + typedef Real* ElemPoinerType; + Vector3() : Vector(){} /** Constructs and initializes a Vector3 from x, y, z coordinates */ @@ -57,6 +59,9 @@ namespace oopse { data_[1] = y; data_[2] = z; } + + /** Constructs and initializes from an array*/ + inline Vector3(double* array) : Vector(array) {} inline Vector3(const Vector& v) : Vector(v) {} @@ -122,7 +127,7 @@ namespace oopse { return result; } - typedef template Vector3 Vector3d; + typedef Vector3 Vector3d; }