Jump to content

Asymptote/Command/plain/Relative

From Wikibooks, open books for an open world

side Relative(explicit pair align);

[edit | edit source]
side Leftside= Relative(W);
side Center=Relative((0,0))
side RightSide=Relative(E);

position Relative(real position);

[edit | edit source]

The position Relative(real) specifies a location relative to the total arclength of the path. These convenient abbreviations are predefined:

position BeginPoint=Relative(0);
position MidPoint=Relative(0.5);
position EndPoint=Relative(1);