Changeset 3219a0 for molecuilder/src/vector.cpp
- Timestamp:
- Aug 3, 2009, 4:44:16 PM (16 years ago)
- Children:
- a87d5e6
- Parents:
- b65771
- File:
-
- 1 edited
-
molecuilder/src/vector.cpp (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 << "(";
Note:
See TracChangeset
for help on using the changeset viewer.
