public Point getCornerPoint(Edge e, double offset_main, double offset_side, double alfa = 1000) { Line startLine = e.Line.Offset(offset_main); Line otherLine = getOtherEdge(e).Line.Offset(offset_side); Line extendedStart = startLine.extendDouble(alfa); Line extendedOther = otherLine.extendDouble(alfa); Point ip = Line.getIntersectionPoint(extendedStart, extendedOther); return(ip); }