Changeset 3219a0 for molecuilder/src
- Timestamp:
- Aug 3, 2009, 4:44:16 PM (16 years ago)
- Children:
- a87d5e6
- Parents:
- b65771
- Location:
- molecuilder/src
- Files:
-
- 2 edited
-
vector.cpp (modified) (2 diffs)
-
vector.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/vector.cpp
rb65771 r3219a0 253 253 }; 254 254 255 /** Checks whether vector has all components zero. 256 * @return true - vector is zero, false - vector is not 257 */ 258 bool Vector::IsNull() 259 { 260 return (fabs(x[0]+x[1]+x[2]) < MYEPSILON); 261 }; 262 255 263 /** Calculates the angle between this and another vector. 256 264 * \param *y array to second vector … … 358 366 }; 359 367 360 ostream& operator<<(ostream& ost, Vector& m)368 ostream& operator<<(ostream& ost, const Vector& m) 361 369 { 362 370 ost << "("; -
molecuilder/src/vector.hpp
rb65771 r3219a0 23 23 double Norm() const ; 24 24 double Angle(const Vector *y) const; 25 bool IsNull(); 26 25 27 26 28 void AddVector(const Vector *y); … … 54 56 }; 55 57 56 ostream & operator << (ostream& ost, Vector &m);58 ostream & operator << (ostream& ost, const Vector &m); 57 59 //Vector& operator+=(Vector& a, const Vector& b); 58 60 //Vector& operator*=(Vector& a, const double m);
Note:
See TracChangeset
for help on using the changeset viewer.
