Changeset 4eee8f for molecuilder/src/vector.hpp
- Timestamp:
- Apr 30, 2010, 10:07:23 AM (16 years ago)
- Children:
- 59e7832
- Parents:
- f70c2a
- File:
-
- 1 edited
-
molecuilder/src/vector.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/vector.hpp
rf70c2a r4eee8f 18 18 19 19 #include "defs.hpp" 20 #include "Space.hpp" 20 21 21 22 /********************************************** declarations *******************************/ … … 24 25 * basically, just a x[3] but with helpful functions 25 26 */ 26 class Vector {27 class Vector : public Space{ 27 28 protected: 28 29 // this struct is used to indicate calls to the Baseconstructor from inside vectors. … … 79 80 80 81 // Methods that are derived directly from other methods 81 double Distance(const Vector &y) const;82 82 double Norm() const; 83 83 double NormSquared() const; … … 93 93 Vector const operator+(const Vector& b) const; 94 94 Vector const operator-(const Vector& b) const; 95 96 // Methods inherited from Space 97 virtual double distance(const Vector &point) const; 98 virtual Vector getClosestPoint(const Vector &point) const; 95 99 96 100 protected:
Note:
See TracChangeset
for help on using the changeset viewer.
