x

y

B_sub = (2.2482248520710018, 10.600258210884208)
ymin = -9.015172870938994
ymax = 17.563311668501104
xmax = 3.9121301775147863
xmin = -1.6488165680473368
dx:1
xBsub: (round(x(B_sub) / dx) * dx)
dy:1
yBsub: (round(y(B_sub) / dy) * dy)
B = DynamicCoordinates(B_sub, If[xBsub  <  xmin, xmin, If[xBsub > xmax, xmax, xBsub]], If[yBsub  <  ymin, ymin, If[yBsub > ymax, ymax, yBsub]])
A_sub = (0.05887573964496887, 2.2785601761713346)
xAsub: (round(x(A_sub) / dx) * dx)
yAsub: (round(y(A_sub) / dy) * dy)
Ashow = DynamicCoordinates(A_sub, If[xAsub  <  xmin, xmin, If[xAsub > xmax, xmax, xAsub]], If[yAsub  <  ymin, ymin, If[yAsub > ymax, ymax, yAsub]])
anchor_A:false
A = If(anchor_A, (0, 0), Ashow)
yscale: ymax - ymin
threshold = 0.03
xscale: xmax - xmin
LL = Corner(1)
UR = Corner(3)
threshold_x: (threshold * xscale)
threshold_y: (threshold * yscale)
xlabeldisplayed: "" + (LaTeX[xlabel]) + ""
ylabeldisplayed: "" + (LaTeX[ylabel]) + ""
v = Vector(A, B)
v_x: x(v)
v_y: y(v)
vlabel: "v = " + v + ""
show_vlabel:true
show_points:true