summaryrefslogtreecommitdiff
path: root/graphics/asymptote/runpair.in
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
committerNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
commit3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch)
tree1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/runpair.in
parentd99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff)
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/runpair.in')
-rw-r--r--graphics/asymptote/runpair.in38
1 files changed, 19 insertions, 19 deletions
diff --git a/graphics/asymptote/runpair.in b/graphics/asymptote/runpair.in
index c0b205787d..f6a24e3006 100644
--- a/graphics/asymptote/runpair.in
+++ b/graphics/asymptote/runpair.in
@@ -17,11 +17,11 @@ extern pair zero;
pair sin(pair z)
{
- return pair(sin(z.getx())*cosh(z.gety()),cos(z.getx())*sinh(z.gety()));
+ return pair(sin(z.getx())*cosh(z.gety()),cos(z.getx())*sinh(z.gety()));
}
-pair exp(pair z)
-{
+pair exp(pair z)
+{
return exp(z.getx())*expi(z.gety());
}
@@ -110,13 +110,13 @@ real radians(real degrees)
}
// Convert radians to degrees.
-real degrees(real radians)
+real degrees(real radians)
{
return degrees(radians);
}
// Convert radians to degrees in [0,360).
-real Degrees(real radians)
+real Degrees(real radians)
{
return principalBranch(degrees(radians));
}
@@ -195,24 +195,24 @@ pair expi(real angle)
return expi(angle);
}
-pair exp(explicit pair z)
-{
+pair exp(explicit pair z)
+{
return exp(z);
}
-pair log(explicit pair z)
-{
+pair log(explicit pair z)
+{
return pair(log(z.length()),z.angle());
}
-pair sin(explicit pair z)
-{
+pair sin(explicit pair z)
+{
return sin(z);
}
-pair cos(explicit pair z)
-{
- return pair(cos(z.getx())*cosh(z.gety()),-sin(z.getx())*sinh(z.gety()));
+pair cos(explicit pair z)
+{
+ return pair(cos(z.getx())*cosh(z.gety()),-sin(z.getx())*sinh(z.gety()));
}
// Complex Gamma function
@@ -226,7 +226,7 @@ pair conj(pair z)
return conj(z);
}
-pair realmult(pair z, pair w)
+pair realmult(pair z, pair w)
{
return pair(z.getx()*w.getx(),z.gety()*w.gety());
}
@@ -243,24 +243,24 @@ real cross(explicit pair z, explicit pair w)
return cross(z,w);
}
-pair bezier(pair a, pair b, pair c, pair d, real t)
+pair bezier(pair a, pair b, pair c, pair d, real t)
{
real onemt=1-t;
real onemt2=onemt*onemt;
return onemt2*onemt*a+t*(3.0*(onemt2*b+t*onemt*c)+t*t*d);
}
-pair bezierP(pair a, pair b, pair c, pair d, real t)
+pair bezierP(pair a, pair b, pair c, pair d, real t)
{
return 3.0*(t*t*(d-a+3.0*(b-c))+t*(2.0*(a+c)-4.0*b)+b-a);
}
-pair bezierPP(pair a, pair b, pair c, pair d, real t)
+pair bezierPP(pair a, pair b, pair c, pair d, real t)
{
return 6.0*(t*(d-a+3.0*(b-c))+a+c)-12.0*b;
}
-pair bezierPPP(pair a, pair b, pair c, pair d)
+pair bezierPPP(pair a, pair b, pair c, pair d)
{
return 6.0*(d-a)+18.0*(b-c);
}