diff options
Diffstat (limited to 'Build/source/utils/asymptote/pair.h')
-rw-r--r-- | Build/source/utils/asymptote/pair.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/pair.h b/Build/source/utils/asymptote/pair.h index 51d93503efa..c66b2289296 100644 --- a/Build/source/utils/asymptote/pair.h +++ b/Build/source/utils/asymptote/pair.h @@ -159,6 +159,11 @@ public: return z.x*w.x+z.y*w.y; } + friend double cross(const pair& z, const pair& w) + { + return z.x*w.y-z.y*w.x; + } + // Return the principal branch of the square root (non-negative real part). friend pair Sqrt(const pair& z) { double mag=z.length(); |