summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/runpair.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-11 22:12:25 +0000
committerKarl Berry <karl@freefriends.org>2015-05-11 22:12:25 +0000
commit0417a4fa56359c545358f5fb8c9b3f88a1845db2 (patch)
treeed331ec191a82fe896f05005dee844269e406281 /Build/source/utils/asymptote/runpair.in
parente7256bd4adc1d8df03ed8434e3f9cc15817b6f22 (diff)
asy 2.33 sources
git-svn-id: svn://tug.org/texlive/trunk@37343 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runpair.in')
-rw-r--r--Build/source/utils/asymptote/runpair.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/runpair.in b/Build/source/utils/asymptote/runpair.in
index d6604454f5e..6170cd82feb 100644
--- a/Build/source/utils/asymptote/runpair.in
+++ b/Build/source/utils/asymptote/runpair.in
@@ -120,7 +120,7 @@ real Degrees(real radians)
real Sin(real deg)
{
- int n=deg/90.0;
+ int n=(int) (deg/90.0);
if(deg == n*90.0) {
int m=n % 4;
if(m < 0) m += 4;
@@ -133,7 +133,7 @@ real Sin(real deg)
real Cos(real deg)
{
- int n=deg/90.0;
+ int n=(int) (deg/90.0);
if(deg == n*90.0) {
int m=n % 4;
if(m < 0) m += 4;
@@ -146,7 +146,7 @@ real Cos(real deg)
real Tan(real deg)
{
- int n=deg/90.0;
+ int n=(int) (deg/90.0);
if(deg == n*90.0) {
int m=n % 4;
if(m < 0) m += 4;
@@ -234,6 +234,12 @@ real dot(explicit pair z, explicit pair w)
return dot(z,w);
}
+// Return the 2D scalar cross product z.x*w.y-z.y*w.x.
+real cross(explicit pair z, explicit pair w)
+{
+ return cross(z,w);
+}
+
pair bezier(pair a, pair b, pair c, pair d, real t)
{
real onemt=1-t;