Ignore:
Timestamp:
Apr 30, 2010, 8:01:18 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
8c01ce
Parents:
070651 (diff), c53e0b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit 'jupiter/StructureRefactoring' into StructureRefactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Plane.cpp

    r070651 r1775d3  
    9898}
    9999
     100vector<Vector> Plane::getPointsOnPlane(){
     101  std::vector<Vector> res;
     102  // first point on the plane
     103  res[0] = getOffsetVector();
     104  // first is orthogonal to the plane...
     105  // an orthogonal vector to this one lies on the plane
     106  Vector direction;
     107  direction.GetOneNormalVector(res[0]);
     108  res[1] = res[0]+direction;
     109  // get an orthogonal vector to direction and offset (lies on the plane)
     110  direction.VectorProduct(res[0]);
     111  direction.Normalize();
     112  res[2] = res[0] +direction;
     113  return res;
     114}
     115
     116
    100117/** Calculates the intersection point between a line defined by \a *LineVector and \a *LineVector2 and a plane defined by \a *Normal and \a *PlaneOffset.
    101118 * According to [Bronstein] the vectorial plane equation is:
Note: See TracChangeset for help on using the changeset viewer.