Add quaternion stream output operator
This commit is contained in:
parent
69c0ce8c59
commit
12ad3c1c43
1 changed files with 6 additions and 0 deletions
|
|
@ -199,4 +199,10 @@ namespace psemek::geom
|
|||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::ostream & operator << (std::ostream & os, quaternion<T> const & q)
|
||||
{
|
||||
return os << q.coords;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue