From: W. Trevor King Date: Wed, 4 Apr 2012 18:44:36 +0000 (-0400) Subject: Add `fill` option to `Angle` in Mechanics.asy. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2d31c8ec51a724421ac99100f862840968feec4;p=course.git Add `fill` option to `Angle` in Mechanics.asy. --- diff --git a/asymptote/Mechanics-test.asy b/asymptote/Mechanics-test.asy index a63e7d0..efd2cd5 100644 --- a/asymptote/Mechanics-test.asy +++ b/asymptote/Mechanics-test.asy @@ -28,8 +28,10 @@ Mass ms[] = {a,b, c}; Distance dab = Distance(a.center, b.center, scale=u, L="$r_{ab}$"); Distance dac = Distance(a.center, c.center, scale=u, L="$r_{ac}$"); Distance ds[] = {dab, dac}; -Angle bac = Angle(b.center, a.center, c.center, radius=-.5u, L="$\theta_T$"); -Angle as[] = {bac}; +Angle bac1 = Angle( + b.center, a.center, c.center, radius=.7u, fill=red, L="$\theta_T'$"); +Angle bac2 = Angle(b.center, a.center, c.center, radius=-.5u, L="$\theta_T$"); +Angle as[] = {bac1, bac2}; Vector vs[]; @@ -40,12 +42,12 @@ vs.push(Vector(center=(-1u,-4u), phi=90, "Out")); vs.push(Vector(center=(-1u,-5.5u), phi=-90, "In")); vs.push(Vector(center=(0, -4u), mag=1.5u, dir=-90, phi=60, "60dg OOP")); +for (int i=0; i