From 1857ef854097f7adf708aca2d5dc7faa3dc97e71 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 12 Apr 2012 00:27:06 -0400 Subject: [PATCH] Test absolute and relative alignment for Distance labels. --- asymptote/Mechanics-test.asy | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/asymptote/Mechanics-test.asy b/asymptote/Mechanics-test.asy index 105ce5f..dcffda7 100644 --- a/asymptote/Mechanics-test.asy +++ b/asymptote/Mechanics-test.asy @@ -48,10 +48,11 @@ lc.draw(); Mass a = Mass(center=(0,0)); Mass b = Mass(center=(2u,1u), Label("$m_b$", align=N)); Mass c = Mass(center=(1u,-2u), Label("$m_c$", align=E)); -Mass ms[] = {a,b, c}; -Distance dab = Distance(b.center(), a.center(), scale=u, - L=Label("$r_{ab}$", embed=Shift)); -Distance dac = Distance(a.center(), c.center(), scale=u, L="$r_{ac}$"); +Mass ms[] = {a, b, c}; +Distance dab = Distance(a.center(), b.center(), scale=u, + L=Label("$r_{ab}$", align=N, embed=Shift)); +Distance dac = Distance(a.center(), c.center(), scale=u, + L=Label("$r_{ac}$", align=RightSide)); Distance ds[] = {dab, dac}; Angle bac1 = Angle( b.center(), a.center(), c.center(), radius=.7u, fill=red, L="$\theta_T'$"); -- 2.26.2