getGripPtMethod = function (seg, altPt) {
  const { path: pth } = seg
  let out = {
    x: altPt ? altPt.x : seg.item.x,
    y: altPt ? altPt.y : seg.item.y
  }

  if (pth.matrix) {
    const pt = transformPoint(out.x, out.y, pth.matrix)
    out = pt
  }
  const zoom = svgCanvas.getZoom()
  out.x *= zoom
  out.y *= zoom

  return out
}
@function module:path.getGripPt
@param {Segment} seg
@param {module:math.XYObject} altPt
@returns {module:math.XYObject}