Add Mass label alignment tests to Mechanics-test.asy.
authorW. Trevor King <wking@drexel.edu>
Wed, 11 Apr 2012 19:11:28 +0000 (15:11 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 11 Apr 2012 19:11:28 +0000 (15:11 -0400)
asymptote/Mechanics-test.asy

index cf40947a81df394dcf1c78881e5d21ba2e289687..a99f0887eaa1c14a5c11d8109c38563649b8877f 100644 (file)
@@ -43,8 +43,8 @@ lc.label.align = E;
 lc.draw();
 
 Mass a = Mass(center=(0,0));
-Mass b = Mass(center=(2u,1u));
-Mass c = Mass(center=(1u,-2u));
+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(a.center(), b.center(), scale=u, L="$r_{ab}$");
 Distance dac = Distance(a.center(), c.center(), scale=u, L="$r_{ac}$");