Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vector.hpp

    rd4c9ae rccf826  
    1616
    1717#include <memory>
     18#include <vector>
    1819
    1920#include "defs.hpp"
     
    2122
    2223/********************************************** declarations *******************************/
     24
     25class Vector;
     26
     27typedef std::vector<Vector> pointset;
    2328
    2429/** Single vector.
     
    3944
    4045  double DistanceSquared(const Vector &y) const;
    41   Vector GetDistanceVectorToPlane(const Vector &PlaneNormal, const Vector &PlaneOffset) const;
    4246  double DistanceToSpace(const Space& space) const;
    4347  double PeriodicDistance(const Vector &y, const double * const cell_size) const;
     
    5660  void ProjectIt(const Vector &y);
    5761  Vector Projection(const Vector &y) const;
    58   void Mirror(const Vector &x);
    5962  void ScaleAll(const double *factor);
    6063  void Scale(const double factor);
     
    6669  bool IsInParallelepiped(const Vector &offset, const double * const parallelepiped) const;
    6770  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;
    6873
    6974  // Accessors ussually come in pairs... and sometimes even more than that
Note: See TracChangeset for help on using the changeset viewer.