parent
cd88c795ae
commit
510d5c500c
|
@ -29,10 +29,7 @@ bool Point3::equals(const Point3 &q, double tol) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Point3::print(const string& s) const {
|
void Point3::print(const string& s) const {
|
||||||
if (s.size() != 0) {
|
cout << s << *this << endl;
|
||||||
cout << s << " ";
|
|
||||||
}
|
|
||||||
cout << *this << endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
|
@ -154,10 +154,7 @@ std::ostream& operator<<(std::ostream& os, const Unit3& pair) {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
void Unit3::print(const std::string& s) const {
|
void Unit3::print(const std::string& s) const {
|
||||||
if(s.size() != 0) {
|
cout << s << ":" << p_ << endl;
|
||||||
cout << s << ":";
|
|
||||||
}
|
|
||||||
cout << p_ << endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
Loading…
Reference in New Issue