summaryrefslogtreecommitdiff
path: root/graphics/asymptote/triple.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-28 03:01:00 +0000
committerNorbert Preining <norbert@preining.info>2021-12-28 03:01:00 +0000
commitecdf859b6ce481abfd530425dcf6f0f764bd0001 (patch)
tree13bc161dc046876ac6c92fce5f9f5034ba9aa573 /graphics/asymptote/triple.h
parent790995b7e79697514364450bf9c04f1b8d500838 (diff)
CTAN sync 202112280300
Diffstat (limited to 'graphics/asymptote/triple.h')
-rw-r--r--graphics/asymptote/triple.h10
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);