diff options
Diffstat (limited to 'graphics/asymptote/triple.h')
-rw-r--r-- | graphics/asymptote/triple.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/asymptote/triple.h b/graphics/asymptote/triple.h index f2dfb61af6..c1639ceedd 100644 --- a/graphics/asymptote/triple.h +++ b/graphics/asymptote/triple.h @@ -18,6 +18,7 @@ #include "common.h" #include "angle.h" #include "pair.h" +#include "xstream.h" namespace camp { @@ -327,6 +328,15 @@ public: return out; } + +#ifdef HAVE_RPC_RPC_H + friend xdr::oxstream& operator << (xdr::oxstream& out, triple const& v) + { + out << v.x << v.y << v.z; + return out; + } +#endif + }; triple expi(double theta, double phi); |