Ignore:
Timestamp:
Jun 10, 2008, 11:11:22 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
c4a0a2
Parents:
32b6dc
Message:

some new functions: vector::vector(), vector::ProjectOntoPlane(), vector::One(), vector::Init()

vector::vector(): another constructor for directly initiating vector
vector::ProjectOntoPlane(): projects a vector onto the planbe defined by a given normal vector
vector::One(): set all components to 1
vector::Init(): initialises vector with given components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/vector.hpp

    r32b6dc rd11f22  
    1010
    1111  vector();
     12  vector(double x1, double x2, double x3);
    1213  ~vector();
    1314
     
    2324  void CopyVector(const vector *y);
    2425  void RotateVector(const vector *y, const double alpha);
    25   void Zero();
     26  void Zero();
     27  void One(double one = 1.);
     28  void Init(double x1, double x2, double x3);
    2629  void Normalize();
    2730  void Translate(const vector *x);
    2831  void Mirror(const vector *x);
     32  void ProjectOntoPlane(const vector *y);
    2933  void Scale(double **factor);
    3034  void Scale(double *factor);
Note: See TracChangeset for help on using the changeset viewer.