Changeset 313dff for molecuilder/src/vector.hpp
- Timestamp:
- Dec 16, 2008, 6:39:28 PM (17 years ago)
- Children:
- 87c8e7
- Parents:
- 5a447f
- File:
-
- 1 edited
-
molecuilder/src/vector.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/vector.hpp
r5a447f r313dff 7 7 * basically, just a x[3] but with helpful functions 8 8 */ 9 class Vector { 9 class Vector { 10 10 public: 11 11 double x[NDIM]; … … 16 16 17 17 double Distance(const Vector *y) const; 18 double DistanceSquared(const Vector *y) const; 18 19 double PeriodicDistance(const Vector *y, const double *cell_size) const; 19 20 double ScalarProduct(const Vector *y) const; … … 28 29 void VectorProduct(const Vector *y); 29 30 void ProjectOntoPlane(const Vector *y); 30 void Zero(); 31 void Zero(); 31 32 void One(double one); 32 33 void Init(double x1, double x2, double x3); … … 41 42 void KeepPeriodic(ofstream *out, double *matrix); 42 43 void LinearCombinationOfVectors(const Vector *x1, const Vector *x2, const Vector *x3, double *factors); 43 44 44 45 double CutsPlaneAt(Vector *A, Vector *B, Vector *C); 45 46 bool GetOneNormalVector(const Vector *x1);
Note:
See TracChangeset
for help on using the changeset viewer.
