Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/LinearAlgebra/Line.cpp

    re0ba10 ra439e5  
    241241  return Line(x1,x1-x2);
    242242}
    243 
    244 ostream& operator<<(ostream& ost, const Line& m)
    245 {
    246   const Vector origin = m.getOrigin();
    247   const Vector direction = m.getDirection();
    248   ost << "(";
    249   for (int i=0;i<NDIM;i++) {
    250     ost << origin[i];
    251     if (i != 2)
    252       ost << ",";
    253   }
    254   ost << ") -> (";
    255   for (int i=0;i<NDIM;i++) {
    256     ost << direction[i];
    257     if (i != 2)
    258       ost << ",";
    259   }
    260   ost << ")";
    261   return ost;
    262 };
    263 
Note: See TracChangeset for help on using the changeset viewer.