直线偏移函数
创建直线的偏移副本,沿垂直方向平移指定距离。 正值向左偏移(相对于直线方向),负值向右偏移。
原直线对象
偏移后的直线
const line = new LineEnt([0, 0], [100, 0]);const offsetUp = offsetLine(line, 10); // 向上偏移10const offsetDown = offsetLine(line, -10); // 向下偏移10 Copy
const line = new LineEnt([0, 0], [100, 0]);const offsetUp = offsetLine(line, 10); // 向上偏移10const offsetDown = offsetLine(line, -10); // 向下偏移10
直线偏移函数
创建直线的偏移副本,沿垂直方向平移指定距离。 正值向左偏移(相对于直线方向),负值向右偏移。