Ignore:
Timestamp:
Dec 16, 2008, 6:39:28 PM (17 years ago)
Author:
Christian Neuen <neuen@…>
Children:
87c8e7
Parents:
5a447f
Message:

Tesselation starts to look good, minor discrepancies are still there and a segmentation fault.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/vector.hpp

    r5a447f r313dff  
    77 * basically, just a x[3] but with helpful functions
    88 */
    9 class Vector {   
     9class Vector {
    1010  public:
    1111    double x[NDIM];
     
    1616
    1717  double Distance(const Vector *y) const;
     18  double DistanceSquared(const Vector *y) const;
    1819  double PeriodicDistance(const Vector *y, const double *cell_size) const;
    1920  double ScalarProduct(const Vector *y) const;
     
    2829  void VectorProduct(const Vector *y);
    2930  void ProjectOntoPlane(const Vector *y);
    30   void Zero(); 
     31  void Zero();
    3132  void One(double one);
    3233  void Init(double x1, double x2, double x3);
     
    4142  void KeepPeriodic(ofstream *out, double *matrix);
    4243  void LinearCombinationOfVectors(const Vector *x1, const Vector *x2, const Vector *x3, double *factors);
    43  
     44
    4445  double CutsPlaneAt(Vector *A, Vector *B, Vector *C);
    4546  bool GetOneNormalVector(const Vector *x1);
Note: See TracChangeset for help on using the changeset viewer.