calculates the weighted mean point between two points

calc_pos(x0, x1, pos = NULL)

Arguments

x0

first point

x1

second point

pos

distance (between 0, 1) from left / bottom point, defaults to 0.5