From e2d31c8ec51a724421ac99100f862840968feec4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 4 Apr 2012 14:44:36 -0400 Subject: [PATCH] Add `fill` option to `Angle` in Mechanics.asy. --- asymptote/Mechanics-test.asy | 10 ++++++---- asymptote/Mechanics.asy | 10 ++++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) 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