Changeset 35:3bb421b79a01 in rrlib_geometry


Ignore:
Timestamp:
30.11.2012 10:31:55 (7 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Children:
36:b1cbf5417488, 45:2a407d1589d4
Phase:
public
Message:

Fixed wrong assertions: rotation matrices have determinant 1

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • curves/tBezierCurve.hpp

    r33 r35  
    367367    } 
    368368  } 
    369   assert(math::IsEqual(rotation.Determinant(), 0)); 
     369  assert(math::IsEqual(rotation.Determinant(), 1)); 
    370370#endif 
    371371 
  • curves/tSplineCurve.hpp

    r31 r35  
    307307    } 
    308308  } 
    309   assert(math::IsEqual(rotation.Determinant(), 0)); 
     309  assert(math::IsEqual(rotation.Determinant(), 1)); 
    310310#endif 
    311311 
  • tLine.hpp

    r25 r35  
    221221tLine<Tdimension, TElement> &tLine<Tdimension, TElement>::Rotate(const math::tMatrix<Tdimension, Tdimension, TElement> &rotation) 
    222222{ 
    223   assert(math::IsEqual(rotation.Determinant(), 0)); 
     223  assert(math::IsEqual(rotation.Determinant(), 1)); 
    224224  this->support = rotation * this->support; 
    225225  this->direction = rotation * this->direction; 
     
    249249    } 
    250250  } 
    251   assert(math::IsEqual(rotation.Determinant(), 0)); 
     251  assert(math::IsEqual(rotation.Determinant(), 1)); 
    252252 
    253253  this->support = transformation.MultiplyHomogeneously(this->support); 
  • tPlane.hpp

    r25 r35  
    147147tPlane<Tdimension, TElement> &tPlane<Tdimension, TElement>::Rotate(const math::tMatrix<Tdimension, Tdimension, TElement> &rotation) 
    148148{ 
    149   assert(math::IsEqual(rotation.Determinant(), 0)); 
     149  assert(math::IsEqual(rotation.Determinant(), 1)); 
    150150  this->support = rotation * this->support; 
    151151  this->normal = rotation * this->normal; 
     
    175175    } 
    176176  } 
    177   assert(math::IsEqual(rotation.Determinant(), 0)); 
     177  assert(math::IsEqual(rotation.Determinant(), 1)); 
    178178 
    179179  this->support = transformation.MultiplyHomogeneously(this->support); 
Note: See TracChangeset for help on using the changeset viewer.