real len = abs(p.pivot.x-b.center().x);
Spring s = Spring(
- pFrom=b.center(), pTo=b.center()-(2u,0), L=Label("$k_1$", align=N));
+ pFrom=b.center()-(2u,0), b.center(), L=Label("$k_1$", align=N));
s.draw();
s = Spring(
pFrom=b.center(), pTo=(p.pivot.x, b.center().y+0.5u),
draw(pic, p, outline, Arrows);
embed e = this.label.embed;
if (this.label.embed == Rotate) {
- this.label.embed = Rotate(this.pFrom - this.pTo);
+ this.label.embed = Rotate(this.pTo - this.pFrom);
}
label(pic=pic, L=this.label, g=p);
this.label.embed = e;
draw(pic, p, outline);
embed e = this.label.embed;
if (this.label.embed == Rotate) {
- this.label.embed = Rotate(this.pFrom - this.pTo);
+ this.label.embed = Rotate(this.pTo - this.pFrom);
}
label(pic=pic, L=this.label, g=p);
this.label.embed = e;
draw(pic, p, outline);
embed e = this.label.embed;
if (this.label.embed == Rotate) {
- this.label.embed = Rotate(this.pFrom - this.pTo);
+ this.label.embed = Rotate(this.pTo - this.pFrom);
}
label(pic=pic, L=this.label,
g=(this.pFrom+pDepth/2) -- (this.pTo+pDepth/2));