Add LabeledCircle to Mechanics.asy and base Mass and Charge off of it.
authorW. Trevor King <wking@drexel.edu>
Wed, 11 Apr 2012 15:45:25 +0000 (11:45 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 11 Apr 2012 15:45:36 +0000 (11:45 -0400)
commitee9ce0e6228b90d8795064afef74fb88715c3a55
treec07a4871e73caed60f32affdb26ebd36421fe2ed
parent46ae784b4978db2c3aa1474294f409650d7e93df
Add LabeledCircle to Mechanics.asy and base Mass and Charge off of it.

This makes label handling easy and consistent (I've also left more
label processing to the Label itself).  Unfortunately, I can't figure
out how to make subclasses in Asymptote, so you'll have to update your
code to access the parameters that moved into LabeledCircle.  There
are new .center() and .set_center() methods to future proof you
against further changes to the location of that parameter.
asymptote/ElectroMag-test.asy
asymptote/ElectroMag.asy
asymptote/Mechanics-test.asy
asymptote/Mechanics.asy