Is there a way to draw a path that was defined by relationships between pairs centered around a specific point?
I basically want to create a path that I can translate anywhere I want in my image.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
You can save the path in a variable and transform it. Example:
path mypath; beginfig(1); z1=(10,-10); x1=-x4; y1=y4; x2=x1; y2=-y1; z3=-z1; mypath = z1--z3--z2--z4--cycle; draw mypath; draw mypath shifted z2; endfig; end