Changes in src/vector.hpp [d4c9ae:ccf826]
- File:
-
- 1 edited
-
src/vector.hpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/vector.hpp
rd4c9ae rccf826 16 16 17 17 #include <memory> 18 #include <vector> 18 19 19 20 #include "defs.hpp" … … 21 22 22 23 /********************************************** declarations *******************************/ 24 25 class Vector; 26 27 typedef std::vector<Vector> pointset; 23 28 24 29 /** Single vector. … … 39 44 40 45 double DistanceSquared(const Vector &y) const; 41 Vector GetDistanceVectorToPlane(const Vector &PlaneNormal, const Vector &PlaneOffset) const;42 46 double DistanceToSpace(const Space& space) const; 43 47 double PeriodicDistance(const Vector &y, const double * const cell_size) const; … … 56 60 void ProjectIt(const Vector &y); 57 61 Vector Projection(const Vector &y) const; 58 void Mirror(const Vector &x);59 62 void ScaleAll(const double *factor); 60 63 void Scale(const double factor); … … 66 69 bool IsInParallelepiped(const Vector &offset, const double * const parallelepiped) const; 67 70 void WrapPeriodically(const double * const M, const double * const Minv); 71 std::pair<Vector,Vector> partition(const Vector&) const; 72 std::pair<pointset,Vector> partition(const pointset&) const; 68 73 69 74 // Accessors ussually come in pairs... and sometimes even more than that
Note:
See TracChangeset
for help on using the changeset viewer.
